diff --git a/dll/win32/netapi32/netapi32.spec b/dll/win32/netapi32/netapi32.spec index 99131f6364a..333d1405b29 100644 --- a/dll/win32/netapi32/netapi32.spec +++ b/dll/win32/netapi32/netapi32.spec @@ -93,7 +93,7 @@ @ stub I_NetServerPasswordSet2 @ stub I_NetServerPasswordSet @ stub I_NetServerReqChallenge -@ stub I_NetServerSetServiceBits +@ stdcall I_NetServerSetServiceBits(wstr wstr long long) @ stub I_NetServerSetServiceBitsEx @ stub I_NetServerTrustPasswordsGet @ stub I_NetlogonComputeClientDigest diff --git a/dll/win32/netapi32/srvsvc.c b/dll/win32/netapi32/srvsvc.c index 7103e4aa583..680082da205 100644 --- a/dll/win32/netapi32/srvsvc.c +++ b/dll/win32/netapi32/srvsvc.c @@ -424,6 +424,36 @@ NetServerSetInfo( } +NET_API_STATUS +WINAPI +I_NetServerSetServiceBits( + _In_ LPWSTR servername, + _In_ LPWSTR transport, + _In_ DWORD servicebits, + _In_ DWORD updateimmediately) +{ + NET_API_STATUS status; + + TRACE("I_NetServerSetServiceBits(%s %s 0x%lx %lu)\n", + debugstr_w(servername), debugstr_w(transport), servicebits, updateimmediately); + + RpcTryExcept + { + status = NetrServerSetServiceBits(servername, + transport, + servicebits, + updateimmediately); + } + RpcExcept(EXCEPTION_EXECUTE_HANDLER) + { + status = I_RpcMapWin32Status(RpcExceptionCode()); + } + RpcEndExcept; + + return status; +} + + NET_API_STATUS WINAPI NetServerTransportAdd(