Windows Dev Center

Expand Minimize

DhcpDeleteServer function

The DhcpDeleteServer function attempts to delete a DHCP server and any related objects (such as subnet information and IP reservations) from the directory service.

Syntax


DWORD DhcpDeleteServer(
  _In_ DWORD              Flags,
  _In_ LPVOID             IdInfo,
  _In_ LPDHCP_SERVER_INFO NewServer,
  _In_ LPVOID             CallbackFn,
  _In_ LPVOID             CallbackData
);

Parameters

Flags [in]

Set to zero.

IdInfo [in]

Set to null.

NewServer [in]

Pointer to a DHCP_SERVER_INFO structure that contains the details of the DHCP server to delete from the directory service.

CallbackFn [in]

Pointer to the function to call after this operation is executed. Set to null.

CallbackData [in]

Pointer to the list of data that will be passed to the callback function specified in CallbackFn. Set to null.

Return value

This function returns ERROR_SUCCESS upon a successful call. Otherwise, it returns one of the DHCP Server Management API Error Codes.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Dhcpsapi.h

Library

Dhcpsapi.lib

DLL

Dhcpsapi.dll

See also

DhcpEnumServers
DHCP_SERVER_INFO

 

 

Community Additions

ADD
Show:
© 2015 Microsoft