[NETAPI32] Implement NetLogonGetTimeServiceParentDomain
[reactos.git] / dll / win32 / netapi32 / netlogon.c
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(