The DhcpEnumOptionsV5 function returns an enumerated list of DHCP options for a given user or vendor class.

Namespace: CENTREL.XIA.Network.Management.DHCPCENTREL.XIA.Network.Management.DHCPCENTREL::XIA::Network::Management::DHCP
Assembly: CENTREL.XIA.Network.Management.DHCP (in CENTREL.XIA.Network.Management.DHCP.dll)

Syntax

C#

[DllImport("dhcpsapi.dll", EntryPoint = "DhcpEnumOptionsV5", CharSet = CharSet.Auto, ExactSpelling = false, SetLastError = true, PreserveSig = true, CallingConvention = CallingConvention.Winapi, BestFitMapping = false, ThrowOnUnmappableChar = false)]

[PreserveSig]

protected static extern uint DhcpEnumOptionsV5(

string ServerIpAddress,

uint Flags,

string ClassName,

string VendorName,

ref uint ResumeHandle,

uint PreferredMaximum,

out IntPtr Options,

ref uint OptionsRead,

ref uint OptionsTotal

)

VB

<PreserveSig> _

Protected Declare Auto Function DhcpEnumOptionsV5 Lib "dhcpsapi.dll" ( _

ServerIpAddress As String, _

Flags As UInteger, _

ClassName As String, _

VendorName As String, _

ByRef ResumeHandle As UInteger, _

PreferredMaximum As UInteger, _

<OutByRef Options As IntPtr, _

ByRef OptionsRead As UInteger, _

ByRef OptionsTotal As UInteger _

) As UInteger

C++

protected:

[DllImport(L"dhcpsapi.dll", EntryPoint = L"DhcpEnumOptionsV5", CharSet = CharSet::Auto, ExactSpelling = false, SetLastError = true, PreserveSig = true, CallingConvention = CallingConvention::Winapi, BestFitMapping = false, ThrowOnUnmappableChar = false)]

[PreserveSig]

static unsigned int DhcpEnumOptionsV5(

String^ ServerIpAddress,

unsigned int Flags,

String^ ClassName,

String^ VendorName,

unsigned int% ResumeHandle,

unsigned int PreferredMaximum,

[OutIntPtr% Options,

unsigned int% OptionsRead,

unsigned int% OptionsTotal

)

Parameters

Return Value

Type: System.UInt32System.UInt32System::UInt32

Remarks

http://msdn.microsoft.com/en-us/library/windows/desktop/dd897527(v=vs.85).aspx

See Also

DHCPServerManagementDHCPServerManagementDHCPServerManagement Class
CENTREL.XIA.Network.Management.DHCPCENTREL.XIA.Network.Management.DHCPCENTREL::XIA::Network::Management::DHCP Namespace