Click here to Skip to main content
11,638,881 members (75,365 online)
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 4:03am
Edited 2-Mar-10 19: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)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 314
1 Suvendu Shekhar Giri 240
2 stibee 213
3 Mika Wendelius 208
4 Richard Deeming 190
0 OriginalGriff 9,061
1 Sergey Alexandrovich Kryukov 8,773
2 Mika Wendelius 7,027
3 Suvendu Shekhar Giri 2,494
4 F-ES Sitecore 2,438


Advertise | Privacy | Mobile
Web02 | 2.8.150728.1 | Last Updated 18 Jul 2010
Copyright © CodeProject, 1999-2015
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