DhcpGetOriginalSubnetMask Function

The DhcpGetOriginalSubnetMask is used to get the subnet mask of any given adapter name.

Syntax

void APIENTRY DhcpGetOriginalSubnetMask(
  __in   LPCWSTR sAdapterName,
  __out  DWORD *dwSubnetMask
);

Parameters

  • sAdapterName [in]
    Contains the name of the local DHCP-enabled adapter for which the subnet mask is being retrieved.

  • dwSubnetMask [out]
    Pointer to the retrieved subnet mask.

Return Value

This function always returns 0.

Failure is indicated by a return value of 0 for the dwSubnetMask parameter.

Return code Description
ERROR_INVALID_PARAMETER

Returned if the sAdapterName parameter is invalid.

Requirements

Minimum supported client Windows 2000 Professional
Minimum supported server Windows 2000 Server
Header Dhcpcsdk.h
Library Dhcpcsvc.lib
DLL Dhcpcsvc.dll

See Also

DHCP Functions

Send comments about this topic to Microsoft

Build date: 3/12/2009