Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VC6 VC7 C++
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 2-Mar-10 5:03am
Edited 2-Mar-10 20:22pm
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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[^]
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

You can use the following WMI query :
 
SELECT * FROM Win32_NetworkAdapterConfiguration
 

DHCPEnabled field is what you are looking for.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

can write the code please for graphic mode; on how to invoke the library and also as import and how to use the library.
  Permalink  
Comments
Peter_in_2780 at 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)



Advertise | Privacy | Mobile
Web02 | 2.8.1411022.1 | Last Updated 18 Jul 2010
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100