[NETAPI32] Implement NetLogonGetTimeServiceParentDomain
authorEric Kohl <eric.kohl@reactos.org>
Tue, 11 Sep 2018 13:02:19 +0000 (15:02 +0200)
committerEric Kohl <eric.kohl@reactos.org>
Tue, 11 Sep 2018 13:02:19 +0000 (15:02 +0200)
dll/win32/netapi32/netapi32.spec
dll/win32/netapi32/netlogon.c

index d00d2f4..3b476e9 100644 (file)
 @ stdcall NetLocalGroupGetMembers(wstr wstr long ptr long ptr ptr ptr)
 @ stdcall NetLocalGroupSetInfo(wstr wstr long ptr ptr)
 @ stdcall NetLocalGroupSetMembers(wstr wstr long ptr long)
-@ stub NetLogonGetTimeServiceParentDomain
+@ stdcall NetLogonGetTimeServiceParentDomain(wstr ptr ptr)
 @ stdcall NetLogonSetServiceBits(wstr long long)
 @ stdcall NetMessageBufferSend(wstr wstr wstr ptr long)
 @ stdcall NetMessageNameAdd(wstr wstr)
index 1133d57..d4b9391 100644 (file)
@@ -652,6 +652,34 @@ NetGetDCName(
 }
 
 
+NET_API_STATUS
+WINAPI
+NetLogonGetTimeServiceParentDomain(
+    _In_ LPWSTR ServerName,
+    _Out_ LPWSTR *DomainName,
+    _Out_ LPBOOL PdcSameSite)
+{
+    NET_API_STATUS Status;
+
+    TRACE("NetLogonGetTimeServiceParentDomain(%s, %p, %p)\n",
+          debugstr_w(ServerName), DomainName, PdcSameSite);
+
+    RpcTryExcept
+    {
+        Status = NetrLogonGetTimeServiceParentDomain(ServerName,
+                                                     DomainName,
+                                                     PdcSameSite);
+    }
+    RpcExcept(EXCEPTION_EXECUTE_HANDLER)
+    {
+        Status = I_RpcMapWin32Status(RpcExceptionCode());
+    }
+    RpcEndExcept;
+
+    return Status;
+}
+
+
 NTSTATUS
 WINAPI
 NetLogonSetServiceBits(