Platform SDK: Network Management

DhcpDeRegisterParamChange

The DhcpDeRegisterParamChange function releases resources associated with previously registered event notifications, and closes the associated event handle.

DWORD
APIENTRY
DhcpDeRegisterParamChange(
  DWORD dwFlags,
  LPVOID pReserved,
  LPVOID hEvent
);

Parameters

dwFlags
[in] Must be the same value as the dwFlags parameter in the DhcpRegisterParamChange function call associated with hEvent.
pReserved
[in] Reserved for future use. Must be set to NULL.
hEvent
[in] Must be the same value as the hEvent parameter in the DhcpRegisterParamChange function call for which the client is de-registering event notification.

Remarks

The DhcpDeRegisterParamChange function must be made subsequent to an associated DhcpRegisterParamChange function call, and the dwFlags and hEvents parameters of DhcpDeRegisterParamChange must match corresponding parameters of the previous and associated DhcpRegisterParamChange function call.

Return Values

Returns ERROR_SUCCESS upon successful completion. Otherwise, returns Win32 error codes.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Header: Declared in Dhcpcsdk.h.
  Library: Use Dhcpcsvc.lib.

See Also

DHCP Overview, DHCP Functions, DhcpRegisterParamChange, DhcpCApiInitialize