[NETAPI32] Implement I_NetServerSetServiceBits()
authorEric Kohl <eric.kohl@reactos.org>
Sun, 5 Aug 2018 13:57:03 +0000 (15:57 +0200)
committerEric Kohl <eric.kohl@reactos.org>
Sun, 5 Aug 2018 13:57:03 +0000 (15:57 +0200)
dll/win32/netapi32/netapi32.spec
dll/win32/netapi32/srvsvc.c

index 99131f6..333d140 100644 (file)
@@ -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
index 7103e4a..680082d 100644 (file)
@@ -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(