Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
5.00/5 (3 votes)
See more:
i want to check my wireless ip has static ip or DHCP so please help me which function should i call ?

thanks in advance....
Posted
Updated 2-Mar-10 19:22pm
v2

Your answer relies withen Win32 API classes, you can access these classes in .NET using System.Managments dll, but you need to know how to use them, here is a link for the Networking Devices Classes APIs in Win32, read it and learn how to use Win32 classes in C# or C++:

http://msdn.microsoft.com/en-us/library/aa389273(VS.85).aspx#_hmm_networking_device_classes[^]
 
Share this answer
 
You can use the following WMI query :

SELECT * FROM Win32_NetworkAdapterConfiguration


DHCPEnabled field is what you are looking for.
 
Share this answer
 
can write the code please for graphic mode; on how to invoke the library and also as import and how to use the library.
 
Share this answer
 
Comments
Peter_in_2780 18-Jul-10 22:24pm    
Reason for my vote of 1
not an answer!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900