## Vanara.PInvoke.Dhcp  
PInvoke API (methods, structures and constants) imported from Windows Dhcpcsvc.dll and Dhcpcsvc6.dll.

- Includes methods from dhcpcsvc6.dll, dhcpcsvc.dll  
- Current NuGet release: [![Nuget](https://img.shields.io/nuget/v/Vanara.PInvoke.Dhcp?logo=nuget&style=flat-square)![Nuget](https://img.shields.io/nuget/dt/Vanara.PInvoke.Dhcp?label=%20&style=flat-square)](https://www.nuget.org/packages/Vanara.PInvoke.Dhcp)  
### Methods - 100% API coverage (21 of 21 functions)  
Native Method | Native DLL | Header | Managed Method  
--- | --- | --- | ---  
[DhcpCApiCleanup](https://www.google.com/search?num=5&q=DhcpCApiCleanup+site%3Alearn.microsoft.com) | dhcpcsvc.dll | dhcpcsdk.h | [Vanara.PInvoke.Dhcp.DhcpCApiCleanup](https://github.com/dahall/Vanara/search?l=C%23&q=DhcpCApiCleanup)  
[DhcpCApiInitialize](https://www.google.com/search?num=5&q=DhcpCApiInitialize+site%3Alearn.microsoft.com) | dhcpcsvc.dll | dhcpcsdk.h | [Vanara.PInvoke.Dhcp.DhcpCApiInitialize](https://github.com/dahall/Vanara/search?l=C%23&q=DhcpCApiInitialize)  
[DhcpDeRegisterParamChange](https://www.google.com/search?num=5&q=DhcpDeRegisterParamChange+site%3Alearn.microsoft.com) | dhcpcsvc.dll | dhcpcsdk.h | [Vanara.PInvoke.Dhcp.DhcpDeRegisterParamChange](https://github.com/dahall/Vanara/search?l=C%23&q=DhcpDeRegisterParamChange)  
[DhcpGetOriginalSubnetMask](https://www.google.com/search?num=5&q=DhcpGetOriginalSubnetMask+site%3Alearn.microsoft.com) | dhcpcsvc.dll | Dhcpcsdk.h | [Vanara.PInvoke.Dhcp.DhcpGetOriginalSubnetMask](https://github.com/dahall/Vanara/search?l=C%23&q=DhcpGetOriginalSubnetMask)  
[DhcpRegisterParamChange](https://www.google.com/search?num=5&q=DhcpRegisterParamChange+site%3Alearn.microsoft.com) | dhcpcsvc.dll | dhcpcsdk.h | [Vanara.PInvoke.Dhcp.DhcpRegisterParamChange](https://github.com/dahall/Vanara/search?l=C%23&q=DhcpRegisterParamChange)  
[DhcpRemoveDNSRegistrations](https://www.google.com/search?num=5&q=DhcpRemoveDNSRegistrations+site%3Alearn.microsoft.com) | dhcpcsvc.dll | dhcpcsdk.h | [Vanara.PInvoke.Dhcp.DhcpRemoveDNSRegistrations](https://github.com/dahall/Vanara/search?l=C%23&q=DhcpRemoveDNSRegistrations)  
[DhcpRequestParams](https://www.google.com/search?num=5&q=DhcpRequestParams+site%3Alearn.microsoft.com) | dhcpcsvc.dll | dhcpcsdk.h | [Vanara.PInvoke.Dhcp.DhcpRequestParams](https://github.com/dahall/Vanara/search?l=C%23&q=DhcpRequestParams)  
[DhcpUndoRequestParams](https://www.google.com/search?num=5&q=DhcpUndoRequestParams+site%3Alearn.microsoft.com) | dhcpcsvc.dll | dhcpcsdk.h | [Vanara.PInvoke.Dhcp.DhcpUndoRequestParams](https://github.com/dahall/Vanara/search?l=C%23&q=DhcpUndoRequestParams)  
[Dhcpv6CApiCleanup](https://www.google.com/search?num=5&q=Dhcpv6CApiCleanup+site%3Alearn.microsoft.com) | dhcpcsvc6.dll | dhcpv6csdk.h | [Vanara.PInvoke.Dhcp.Dhcpv6CApiCleanup](https://github.com/dahall/Vanara/search?l=C%23&q=Dhcpv6CApiCleanup)  
[Dhcpv6CApiInitialize](https://www.google.com/search?num=5&q=Dhcpv6CApiInitialize+site%3Alearn.microsoft.com) | dhcpcsvc6.dll | dhcpv6csdk.h | [Vanara.PInvoke.Dhcp.Dhcpv6CApiInitialize](https://github.com/dahall/Vanara/search?l=C%23&q=Dhcpv6CApiInitialize)  
[Dhcpv6ReleasePrefix](https://www.google.com/search?num=5&q=Dhcpv6ReleasePrefix+site%3Alearn.microsoft.com) | dhcpcsvc6.dll | dhcpv6csdk.h | [Vanara.PInvoke.Dhcp.Dhcpv6ReleasePrefix](https://github.com/dahall/Vanara/search?l=C%23&q=Dhcpv6ReleasePrefix)  
[Dhcpv6RenewPrefix](https://www.google.com/search?num=5&q=Dhcpv6RenewPrefix+site%3Alearn.microsoft.com) | dhcpcsvc6.dll | dhcpv6csdk.h | [Vanara.PInvoke.Dhcp.Dhcpv6RenewPrefix](https://github.com/dahall/Vanara/search?l=C%23&q=Dhcpv6RenewPrefix)  
[Dhcpv6RequestParams](https://www.google.com/search?num=5&q=Dhcpv6RequestParams+site%3Alearn.microsoft.com) | dhcpcsvc6.dll | dhcpv6csdk.h | [Vanara.PInvoke.Dhcp.Dhcpv6RequestParams](https://github.com/dahall/Vanara/search?l=C%23&q=Dhcpv6RequestParams)  
[Dhcpv6RequestPrefix](https://www.google.com/search?num=5&q=Dhcpv6RequestPrefix+site%3Alearn.microsoft.com) | dhcpcsvc6.dll | dhcpv6csdk.h | [Vanara.PInvoke.Dhcp.Dhcpv6RequestPrefix](https://github.com/dahall/Vanara/search?l=C%23&q=Dhcpv6RequestPrefix)  
[McastApiCleanup](https://www.google.com/search?num=5&q=McastApiCleanup+site%3Alearn.microsoft.com) | dhcpcsvc.dll | madcapcl.h | [Vanara.PInvoke.MADCAP.McastApiCleanup](https://github.com/dahall/Vanara/search?l=C%23&q=McastApiCleanup)  
[McastApiStartup](https://www.google.com/search?num=5&q=McastApiStartup+site%3Alearn.microsoft.com) | dhcpcsvc.dll | madcapcl.h | [Vanara.PInvoke.MADCAP.McastApiStartup](https://github.com/dahall/Vanara/search?l=C%23&q=McastApiStartup)  
[McastEnumerateScopes](https://www.google.com/search?num=5&q=McastEnumerateScopes+site%3Alearn.microsoft.com) | dhcpcsvc.dll | madcapcl.h | [Vanara.PInvoke.MADCAP.McastEnumerateScopes](https://github.com/dahall/Vanara/search?l=C%23&q=McastEnumerateScopes)  
[McastGenUID](https://www.google.com/search?num=5&q=McastGenUID+site%3Alearn.microsoft.com) | dhcpcsvc.dll | madcapcl.h | [Vanara.PInvoke.MADCAP.McastGenUID](https://github.com/dahall/Vanara/search?l=C%23&q=McastGenUID)  
[McastReleaseAddress](https://www.google.com/search?num=5&q=McastReleaseAddress+site%3Alearn.microsoft.com) | dhcpcsvc.dll | madcapcl.h | [Vanara.PInvoke.MADCAP.McastReleaseAddress](https://github.com/dahall/Vanara/search?l=C%23&q=McastReleaseAddress)  
[McastRenewAddress](https://www.google.com/search?num=5&q=McastRenewAddress+site%3Alearn.microsoft.com) | dhcpcsvc.dll | madcapcl.h | [Vanara.PInvoke.MADCAP.McastRenewAddress](https://github.com/dahall/Vanara/search?l=C%23&q=McastRenewAddress)  
[McastRequestAddress](https://www.google.com/search?num=5&q=McastRequestAddress+site%3Alearn.microsoft.com) | dhcpcsvc.dll | madcapcl.h | [Vanara.PInvoke.MADCAP.McastRequestAddress](https://github.com/dahall/Vanara/search?l=C%23&q=McastRequestAddress)  
### Enumerations  
Native Enum | Header | Managed Enum  
--- | --- | ---  
[DHCP_OPTION_ID](https://www.google.com/search?num=5&q=DHCP_OPTION_ID+site%3Alearn.microsoft.com) | dhcpcsdk.h | [Vanara.PInvoke.Dhcp.DHCP_OPTION_ID](https://github.com/dahall/Vanara/search?l=C%23&q=DHCP_OPTION_ID)  
[DHCPCAPI_REQUEST](https://www.google.com/search?num=5&q=DHCPCAPI_REQUEST+site%3Alearn.microsoft.com) | dhcpcsdk.h | [Vanara.PInvoke.Dhcp.DHCPCAPI_REQUEST](https://github.com/dahall/Vanara/search?l=C%23&q=DHCPCAPI_REQUEST)  
[DhcpMessageType](https://www.google.com/search?num=5&q=DhcpMessageType+site%3Alearn.microsoft.com) |  | [Vanara.PInvoke.Dhcp.DhcpMessageType](https://github.com/dahall/Vanara/search?l=C%23&q=DhcpMessageType)  
[DHCPV6_OPTION_ID](https://www.google.com/search?num=5&q=DHCPV6_OPTION_ID+site%3Alearn.microsoft.com) | dhcpcsdk.h | [Vanara.PInvoke.Dhcp.DHCPV6_OPTION_ID](https://github.com/dahall/Vanara/search?l=C%23&q=DHCPV6_OPTION_ID)  
[NetBIOSNodeType](https://www.google.com/search?num=5&q=NetBIOSNodeType+site%3Alearn.microsoft.com) |  | [Vanara.PInvoke.Dhcp.NetBIOSNodeType](https://github.com/dahall/Vanara/search?l=C%23&q=NetBIOSNodeType)  
[StatusCode](https://www.google.com/search?num=5&q=StatusCode+site%3Alearn.microsoft.com) | dhcpv6csdk.h | [Vanara.PInvoke.Dhcp.StatusCode](https://github.com/dahall/Vanara/search?l=C%23&q=StatusCode)  
### Structures  
Native Structure | Header | Managed Structure  
--- | --- | ---  
[DHCP_IP_ADDRESS](https://www.google.com/search?num=5&q=DHCP_IP_ADDRESS+site%3Alearn.microsoft.com) | dhcpsapi.h | [Vanara.PInvoke.Dhcp.DHCP_IP_ADDRESS](https://github.com/dahall/Vanara/search?l=C%23&q=DHCP_IP_ADDRESS)  
[DHCPAPI_PARAMS](https://www.google.com/search?num=5&q=DHCPAPI_PARAMS+site%3Alearn.microsoft.com) | dhcpcsdk.h | [Vanara.PInvoke.Dhcp.DHCPAPI_PARAMS](https://github.com/dahall/Vanara/search?l=C%23&q=DHCPAPI_PARAMS)  
[DHCPCAPI_CLASSID](https://www.google.com/search?num=5&q=DHCPCAPI_CLASSID+site%3Alearn.microsoft.com) | dhcpcsdk.h | [Vanara.PInvoke.Dhcp.DHCPCAPI_CLASSID](https://github.com/dahall/Vanara/search?l=C%23&q=DHCPCAPI_CLASSID)  
[DHCPCAPI_PARAMS_ARRAY](https://www.google.com/search?num=5&q=DHCPCAPI_PARAMS_ARRAY+site%3Alearn.microsoft.com) | dhcpcsdk.h | [Vanara.PInvoke.Dhcp.DHCPCAPI_PARAMS_ARRAY](https://github.com/dahall/Vanara/search?l=C%23&q=DHCPCAPI_PARAMS_ARRAY)  
[DHCPV6CAPI_CLASSID](https://www.google.com/search?num=5&q=DHCPV6CAPI_CLASSID+site%3Alearn.microsoft.com) | dhcpv6csdk.h | [Vanara.PInvoke.Dhcp.DHCPV6CAPI_CLASSID](https://github.com/dahall/Vanara/search?l=C%23&q=DHCPV6CAPI_CLASSID)  
[DHCPV6CAPI_PARAMS](https://www.google.com/search?num=5&q=DHCPV6CAPI_PARAMS+site%3Alearn.microsoft.com) | dhcpv6csdk.h | [Vanara.PInvoke.Dhcp.DHCPV6CAPI_PARAMS](https://github.com/dahall/Vanara/search?l=C%23&q=DHCPV6CAPI_PARAMS)  
[DHCPV6CAPI_PARAMS_ARRAY](https://www.google.com/search?num=5&q=DHCPV6CAPI_PARAMS_ARRAY+site%3Alearn.microsoft.com) | dhcpv6csdk.h | [Vanara.PInvoke.Dhcp.DHCPV6CAPI_PARAMS_ARRAY](https://github.com/dahall/Vanara/search?l=C%23&q=DHCPV6CAPI_PARAMS_ARRAY)  
[DHCPV6Prefix](https://www.google.com/search?num=5&q=DHCPV6Prefix+site%3Alearn.microsoft.com) | dhcpv6csdk.h | [Vanara.PInvoke.Dhcp.DHCPV6Prefix](https://github.com/dahall/Vanara/search?l=C%23&q=DHCPV6Prefix)  
[DHCPV6PrefixLeaseInformation](https://www.google.com/search?num=5&q=DHCPV6PrefixLeaseInformation+site%3Alearn.microsoft.com) | dhcpv6csdk.h | [Vanara.PInvoke.Dhcp.DHCPV6PrefixLeaseInformation](https://github.com/dahall/Vanara/search?l=C%23&q=DHCPV6PrefixLeaseInformation)  
[IPNG_ADDRESS](https://www.google.com/search?num=5&q=IPNG_ADDRESS+site%3Alearn.microsoft.com) | madcapcl.h | [Vanara.PInvoke.MADCAP.IPNG_ADDRESS](https://github.com/dahall/Vanara/search?l=C%23&q=IPNG_ADDRESS)  
[MCAST_CLIENT_UID](https://www.google.com/search?num=5&q=MCAST_CLIENT_UID+site%3Alearn.microsoft.com) | madcapcl.h | [Vanara.PInvoke.MADCAP.MCAST_CLIENT_UID](https://github.com/dahall/Vanara/search?l=C%23&q=MCAST_CLIENT_UID)  
[MCAST_LEASE_REQUEST](https://www.google.com/search?num=5&q=MCAST_LEASE_REQUEST+site%3Alearn.microsoft.com) | madcapcl.h | [Vanara.PInvoke.MADCAP.MCAST_LEASE_REQUEST](https://github.com/dahall/Vanara/search?l=C%23&q=MCAST_LEASE_REQUEST)  
[MCAST_LEASE_RESPONSE](https://www.google.com/search?num=5&q=MCAST_LEASE_RESPONSE+site%3Alearn.microsoft.com) | madcapcl.h | [Vanara.PInvoke.MADCAP.MCAST_LEASE_RESPONSE](https://github.com/dahall/Vanara/search?l=C%23&q=MCAST_LEASE_RESPONSE)  
[MCAST_SCOPE_CTX](https://www.google.com/search?num=5&q=MCAST_SCOPE_CTX+site%3Alearn.microsoft.com) | madcapcl.h | [Vanara.PInvoke.MADCAP.MCAST_SCOPE_CTX](https://github.com/dahall/Vanara/search?l=C%23&q=MCAST_SCOPE_CTX)  
[MCAST_SCOPE_ENTRY](https://www.google.com/search?num=5&q=MCAST_SCOPE_ENTRY+site%3Alearn.microsoft.com) | madcapcl.h | [Vanara.PInvoke.MADCAP.MCAST_SCOPE_ENTRY](https://github.com/dahall/Vanara/search?l=C%23&q=MCAST_SCOPE_ENTRY)  
### Classes  
Native Class | Header | Managed Class  
--- | --- | ---  
[Dhcp](https://www.google.com/search?num=5&q=Dhcp+site%3Alearn.microsoft.com) |  | [Vanara.PInvoke.Dhcp](https://github.com/dahall/Vanara/search?l=C%23&q=Dhcp)  
[MADCAP](https://www.google.com/search?num=5&q=MADCAP+site%3Alearn.microsoft.com) |  | [Vanara.PInvoke.MADCAP](https://github.com/dahall/Vanara/search?l=C%23&q=MADCAP)  
