Click here to Skip to main content
11,576,064 members (59,083 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 305
1 F-ES Sitecore 145
2 OriginalGriff 125
3 Abhinav S 98
4 Dave Kreskowiak 80
0 OriginalGriff 705
1 Sergey Alexandrovich Kryukov 600
2 Abhinav S 438
3 F-ES Sitecore 410
4 Suvendu Shekhar Giri 365


Advertise | Privacy | Mobile
Web03 | 2.8.150603.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