https://git.reactos.org/?p=reactos.git;a=commitdiff;h=e0b5050089270375e4df0…
commit e0b5050089270375e4df0c8949e50020d94e6809
Author: Eric Kohl <eric.kohl(a)reactos.org>
AuthorDate: Tue Sep 11 15:02:19 2018 +0200
Commit: Eric Kohl <eric.kohl(a)reactos.org>
CommitDate: Tue Sep 11 15:02:19 2018 +0200
[NETAPI32] Implement NetLogonGetTimeServiceParentDomain
---
dll/win32/netapi32/netapi32.spec | 2 +-
dll/win32/netapi32/netlogon.c | 28 ++++++++++++++++++++++++++++
2 files changed, 29 insertions(+), 1 deletion(-)
diff --git a/dll/win32/netapi32/netapi32.spec b/dll/win32/netapi32/netapi32.spec
index d00d2f4162..3b476e94b1 100644
--- a/dll/win32/netapi32/netapi32.spec
+++ b/dll/win32/netapi32/netapi32.spec
@@ -173,7 +173,7 @@
@ 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)
diff --git a/dll/win32/netapi32/netlogon.c b/dll/win32/netapi32/netlogon.c
index 1133d5769d..d4b939109f 100644
--- a/dll/win32/netapi32/netlogon.c
+++ b/dll/win32/netapi32/netlogon.c
@@ -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(