[Winpcap-users] associated, but not connected
David Barnish
david.barnish at spanlink.com
Tue Oct 11 18:29:06 GMT 2005
Check out the Microsoft IP Helper API. I'm fairly certain that this is the API they use in their OS apps to display network objects and their configurations. You may need to get the Platform SDK from Microsoft (it's free for downloading) to get the necessary libraries.
Searching through the registry to find network configuration information and supporting multiple versions of Windows can be a nightmare.
Thank you,
David Barnish
Senior Software Engineer R&D
Spanlink Communications
-----Original Message-----
From: winpcap-users-bounces at winpcap.org
[mailto:winpcap-users-bounces at winpcap.org]On Behalf Of Michal
Szostakiewicz
Sent: Tuesday, October 11, 2005 1:08 PM
To: winpcap-users at winpcap.org
Subject: Re: [Winpcap-users] associated, but not connected
On Tue, 11 Oct 2005, Bryan Kadzban wrote:
> So, you could check whether the interface has an IP address assigned.
> If it has a 169.254.0.0/16 address, or 0.0.0.0, then DHCP has failed,
> and you're probably in that state. To look at this, you could either
> run ipconfig and try to parse its output,
Yeah, I thought about it as one of first guesses, but it occured to me
that it may bring out some problems - if administrator removed 'ipconfig'
[for any reason] or just blocked it, I've got trouble. Also simple 'using
different Windows language versions' might not be nice.
And also I just though that...
> or you could look into the
> API calls that would be required to find this information out.
...Windows has to do it somehow! :-) Anybody has any idea how?
How can I trace API calls?
greets,
creed
_______________________________________________
Winpcap-users mailing list
Winpcap-users at winpcap.org
https://www.winpcap.org/mailman/listinfo/winpcap-users
More information about the Winpcap-users
mailing list