Author: ekohl
Date: Sat Jul 8 09:11:22 2017
New Revision: 75305
URL:
http://svn.reactos.org/svn/reactos?rev=75305&view=rev
Log:
[NETAPI32]
- Add DsDeregisterDnsHostRecordsA stub.
- Implement DsDeregisterDnsHostRecordsW.
[SDK/INCLUDE]
Add DsDeregisterDnsHostRecordsA/W prototypes to dsgetdc.h.
Modified:
trunk/reactos/dll/win32/netapi32/netapi32.spec
trunk/reactos/dll/win32/netapi32/netlogon.c
trunk/reactos/sdk/include/psdk/dsgetdc.h
Modified: trunk/reactos/dll/win32/netapi32/netapi32.spec
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netapi32/netapi3…
==============================================================================
--- trunk/reactos/dll/win32/netapi32/netapi32.spec [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netapi32/netapi32.spec [iso-8859-1] Sat Jul 8 09:11:22 2017
@@ -3,8 +3,8 @@
@ stub DsAddressToSiteNamesExA
@ stub DsAddressToSiteNamesExW
@ stdcall DsAddressToSiteNamesW(wstr long ptr wstr)
-@ stub DsDeregisterDnsHostRecordsA
-@ stub DsDeregisterDnsHostRecordsW
+@ stdcall DsDeregisterDnsHostRecordsA(str str ptr ptr str)
+@ stdcall DsDeregisterDnsHostRecordsW(wstr wstr ptr ptr wstr)
8 stdcall DsEnumerateDomainTrustsA(wstr long ptr ptr)
9 stdcall DsEnumerateDomainTrustsW(wstr long ptr ptr)
@ stub DsGetDcCloseW
Modified: trunk/reactos/dll/win32/netapi32/netlogon.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netapi32/netlogo…
==============================================================================
--- trunk/reactos/dll/win32/netapi32/netlogon.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netapi32/netlogon.c [iso-8859-1] Sat Jul 8 09:11:22 2017
@@ -162,6 +162,55 @@
DWORD
WINAPI
+DsDeregisterDnsHostRecordsA(
+ _In_opt_ LPSTR ServerName,
+ _In_opt_ LPSTR DnsDomainName,
+ _In_opt_ GUID *DomainGuid,
+ _In_opt_ GUID *DsaGuid,
+ _In_ LPSTR DnsHostName)
+{
+ FIXME("DsDeregisterDnsHostRecordsA(%s, %s, %p, %p, %s)\n",
+ debugstr_a(ServerName), debugstr_a(DnsDomainName),
+ DomainGuid, DsaGuid, debugstr_a(DnsHostName));
+ return ERROR_CALL_NOT_IMPLEMENTED;
+}
+
+
+DWORD
+WINAPI
+DsDeregisterDnsHostRecordsW(
+ _In_opt_ LPWSTR ServerName,
+ _In_opt_ LPWSTR DnsDomainName,
+ _In_opt_ GUID *DomainGuid,
+ _In_opt_ GUID *DsaGuid,
+ _In_ LPWSTR DnsHostName)
+{
+ NET_API_STATUS status;
+
+ TRACE("DsDeregisterDnsHostRecordsW(%s, %s, %p, %p, %s)\n",
+ debugstr_w(ServerName), debugstr_w(DnsDomainName),
+ DomainGuid, DsaGuid, debugstr_w(DnsHostName));
+
+ RpcTryExcept
+ {
+ status = DsrDeregisterDnsHostRecords(ServerName,
+ DnsDomainName,
+ DomainGuid,
+ DsaGuid,
+ DnsHostName);
+ }
+ RpcExcept(EXCEPTION_EXECUTE_HANDLER)
+ {
+ status = I_RpcMapWin32Status(RpcExceptionCode());
+ }
+ RpcEndExcept;
+
+ return status;
+}
+
+
+DWORD
+WINAPI
DsEnumerateDomainTrustsA(
_In_opt_ LPSTR ServerName,
_In_ ULONG Flags,
Modified: trunk/reactos/sdk/include/psdk/dsgetdc.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/include/psdk/dsgetdc.h…
==============================================================================
--- trunk/reactos/sdk/include/psdk/dsgetdc.h [iso-8859-1] (original)
+++ trunk/reactos/sdk/include/psdk/dsgetdc.h [iso-8859-1] Sat Jul 8 09:11:22 2017
@@ -93,6 +93,22 @@
LPWSTR **SubnetNames);
DWORD WINAPI
+DsDeregisterDnsHostRecordsA(
+ LPSTR ServerName,
+ LPSTR DnsDomainName,
+ GUID *DomainGuid,
+ GUID *DsaGuid,
+ LPSTR DnsHostName);
+
+DWORD WINAPI
+DsDeregisterDnsHostRecordsW(
+ LPWSTR ServerName,
+ LPWSTR DnsDomainName,
+ GUID *DomainGuid,
+ GUID *DsaGuid,
+ LPWSTR DnsHostName);
+
+DWORD WINAPI
DsEnumerateDomainTrustsA(
LPSTR ServerName,
ULONG Flags,
@@ -124,42 +140,36 @@
ULONG Flags,
PDOMAIN_CONTROLLER_INFOW* DomainControllerInfo);
-DWORD
-WINAPI
+DWORD WINAPI
DsGetDcSiteCoverageA(
LPCSTR ServerName,
PULONG EntryCount,
LPSTR **SiteNames);
-DWORD
-WINAPI
+DWORD WINAPI
DsGetDcSiteCoverageW(
LPCWSTR ServerName,
PULONG EntryCount,
LPWSTR **SiteNames);
-DWORD
-WINAPI
+DWORD WINAPI
DsGetForestTrustInformationW(
LPCWSTR ServerName,
LPCWSTR TrustedDomainName,
DWORD Flags,
PLSA_FOREST_TRUST_INFORMATION *ForestTrustInfo);
-DWORD
-WINAPI
+DWORD WINAPI
DsGetSiteNameA(
LPCSTR ComputerName,
LPSTR *SiteName);
-DWORD
-WINAPI
+DWORD WINAPI
DsGetSiteNameW(
LPCWSTR ComputerName,
LPWSTR *SiteName);
-DWORD
-WINAPI
+DWORD WINAPI
DsMergeForestTrustInformationW(
LPCWSTR DomainName,
PLSA_FOREST_TRUST_INFORMATION NewForestTrustInfo,