mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 00:40:26 +08:00
[DHCPCSVC][IDL] Implement DhcpRemoveDNSRegistrations()
The dnsapi.dll part is still missing.
This commit is contained in:
@@ -251,3 +251,14 @@ done:
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* Function 4 */
|
||||
DWORD
|
||||
__stdcall
|
||||
Server_RemoveDNSRegistrations(
|
||||
_In_ PDHCP_SERVER_NAME ServerName)
|
||||
{
|
||||
DPRINT1("Server_RemoveDNSRegistrations()\n");
|
||||
/* FIXME: Call dnsapi.DnsRemoveRegistrations() */
|
||||
return ERROR_SUCCESS;
|
||||
}
|
||||
|
||||
@@ -283,6 +283,32 @@ DhcpReleaseParameters(
|
||||
return ret;
|
||||
}
|
||||
|
||||
/*!
|
||||
* Removes all DNS Registrations which were added by the DHCP Client
|
||||
*
|
||||
* \return ERROR_SUCCESS on success
|
||||
*/
|
||||
DWORD
|
||||
WINAPI
|
||||
DhcpRemoveDNSRegistrations(VOID)
|
||||
{
|
||||
DWORD ret;
|
||||
|
||||
DPRINT("DhcpRemoveDNSRegistrations()\n");
|
||||
|
||||
RpcTryExcept
|
||||
{
|
||||
ret = Client_RemoveDNSRegistrations(NULL);
|
||||
}
|
||||
RpcExcept(EXCEPTION_EXECUTE_HANDLER)
|
||||
{
|
||||
ret = I_RpcMapWin32Status(RpcExceptionCode());
|
||||
}
|
||||
RpcEndExcept;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
DWORD
|
||||
APIENTRY
|
||||
DhcpStaticRefreshParams(DWORD AdapterIndex,
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
@ stub DhcpReleaseIpAddressLease
|
||||
@ stub DhcpReleaseIpAddressLeaseEx
|
||||
@ stdcall DhcpReleaseParameters(wstr)
|
||||
@ stub DhcpRemoveDNSRegistrations
|
||||
@ stdcall DhcpRemoveDNSRegistrations()
|
||||
@ stub DhcpRenewIpAddressLease
|
||||
@ stub DhcpRenewIpAddressLeaseEx
|
||||
@ stub DhcpRequestOptions
|
||||
|
||||
@@ -52,4 +52,10 @@ interface dhcpcsvc
|
||||
[in] DWORD AdapterIndex,
|
||||
[in] DWORD Address,
|
||||
[in] DWORD Netmask);
|
||||
|
||||
/* Function 4 */
|
||||
DWORD
|
||||
__stdcall
|
||||
RemoveDNSRegistrations(
|
||||
[in, string, unique] PDHCP_SERVER_NAME ServerName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user