https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b4040ea74036e16e360aaa942bddf0355fb3e887

commit b4040ea74036e16e360aaa942bddf0355fb3e887
Author:     Eric Kohl <[email protected]>
AuthorDate: Sun Aug 5 15:57:03 2018 +0200
Commit:     Eric Kohl <[email protected]>
CommitDate: Sun Aug 5 15:57:03 2018 +0200

    [NETAPI32] Implement I_NetServerSetServiceBits()
---
 dll/win32/netapi32/netapi32.spec |  2 +-
 dll/win32/netapi32/srvsvc.c      | 30 ++++++++++++++++++++++++++++++
 2 files changed, 31 insertions(+), 1 deletion(-)

diff --git a/dll/win32/netapi32/netapi32.spec b/dll/win32/netapi32/netapi32.spec
index 99131f6364..333d1405b2 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 7103e4aa58..680082da20 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(

Reply via email to