KarlM,
You can use WMI for this. Using the classes in the System.Management
namespace, you can get the instance of the Win32_NetworkAdapterConfiguration
instance which corresponds to the network adapter that you want to make the
DHCP lease for. You can then call the ReleaseDHCPLease method and the
RenewDHCPLease methods to release and renew the DHCP lease.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"KarlM" <Ma******@newsgroup.nospam> wrote in message
news:ED**********************************@microsof t.com...
Is there any sample code for making a DHCP reservation via C#?
Thanks in advance