Author: ekohl Date: Tue Sep 26 09:18:20 2017 New Revision: 75974
URL: http://svn.reactos.org/svn/reactos?rev=75974&view=rev Log: [NETAPI32] Implement NetLogonSetServiceBits().
Modified: trunk/reactos/dll/win32/netapi32/netapi32.spec trunk/reactos/dll/win32/netapi32/netlogon.c
Modified: trunk/reactos/dll/win32/netapi32/netapi32.spec URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netapi32/netapi32... ============================================================================== --- trunk/reactos/dll/win32/netapi32/netapi32.spec [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netapi32/netapi32.spec [iso-8859-1] Tue Sep 26 09:18:20 2017 @@ -174,7 +174,7 @@ @ stdcall NetLocalGroupSetInfo(wstr wstr long ptr ptr) @ stdcall NetLocalGroupSetMembers(wstr wstr long ptr long) @ stub NetLogonGetTimeServiceParentDomain -@ stub NetLogonSetServiceBits +@ stdcall NetLogonSetServiceBits(wstr long long) @ stdcall NetMessageBufferSend(wstr wstr wstr ptr long) @ stdcall NetMessageNameAdd(wstr wstr) @ stdcall NetMessageNameDel(wstr wstr)
Modified: trunk/reactos/dll/win32/netapi32/netlogon.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netapi32/netlogon... ============================================================================== --- trunk/reactos/dll/win32/netapi32/netlogon.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netapi32/netlogon.c [iso-8859-1] Tue Sep 26 09:18:20 2017 @@ -19,8 +19,10 @@
/* FUNCTIONS *****************************************************************/
-handle_t __RPC_USER -LOGONSRV_HANDLE_bind(LOGONSRV_HANDLE pszSystemName) +handle_t +__RPC_USER +LOGONSRV_HANDLE_bind( + LOGONSRV_HANDLE pszSystemName) { handle_t hBinding = NULL; LPWSTR pszStringBinding; @@ -58,9 +60,11 @@ }
-void __RPC_USER -LOGONSRV_HANDLE_unbind(LOGONSRV_HANDLE pszSystemName, - handle_t hBinding) +void +__RPC_USER +LOGONSRV_HANDLE_unbind( + LOGONSRV_HANDLE pszSystemName, + handle_t hBinding) { RPC_STATUS status;
@@ -73,6 +77,8 @@ } }
+ +/* PUBLIC FUNCTIONS **********************************************************/
DWORD WINAPI @@ -645,4 +651,32 @@ return NERR_DCNotFound; }
+ +NTSTATUS +WINAPI +NetLogonSetServiceBits( + _In_ LPWSTR ServerName, + _In_ DWORD ServiceBitsOfInterest, + _In_ DWORD ServiceBits) +{ + NTSTATUS Status; + + TRACE("NetLogonSetServiceBits(%s 0x%lx 0x%lx)\n", + debugstr_w(ServerName), ServiceBitsOfInterest, ServiceBits); + + RpcTryExcept + { + Status = NetrLogonSetServiceBits(ServerName, + ServiceBitsOfInterest, + ServiceBits); + } + RpcExcept(EXCEPTION_EXECUTE_HANDLER) + { + Status = RpcExceptionCode(); + } + RpcEndExcept; + + return Status; +} + /* EOF */