Thanks. Bryan.
This is very helpful. I only need to support NT 4.0 sp5 and newer versions
of NT (2k, XP).
The toughest part for me now is to figure it out if a client PC connects to
Coperation web site through a WAN or LAN since client PC may use external
ADSL, Cable, and Satellite modem that is connect to a PC through eithernet.
Can Protocol driver or NDIS driver tell in these cases?
Is there a peformance counter inside Protocol driver or NDIS driver that
stores the current or average transfer rate that can be query upon using
WMI? I know there is ip routing utility that trace the router. I am also
thinking to use a server utility (I forget the name) to trace routers
beteen client and server to see if ip address of router is outside of
certain subnets. Do you recall the name? Is there a Win32 API to access the
information this utility can produce?
I apprecaite your help.
Bi
-----Original Message-----
From: Bryan Burgin [mailto:xxxxx@microsoft.com]
Sent: Wednesday, October 09, 2002 2:46 PM
To: NT Developers Interest List
Cc: xxxxx@AppStream.com
Subject: [ntdev] RE: Help. is there a way to tell a socket connetion to
a server is th rough WAN or LAN (modem, ADSL, Cable modem)?
Bi,
Through IOCTL_NDIS_QUERY_GLOBAL_STATS or WMI (or via NdisRequest if you’re a
protocol driver bound to the miniport), you could query the miniport for
OID_GEN_PHYSICAL_MEDIUM and/or OID_GEN_MEDIA_IN_USE.
Bryan S. Burgin
xxxxx@microsoft.com
?
This posting is provided “AS IS” with no warranties, and confers no rights.
-----Original Message-----
From: Bi Chen [mailto:xxxxx@AppStream.com]
Sent: Wednesday, October 09, 2002 2:22 PM
To: NT Developers Interest List
Subject: [ntdev] Help. is there a way to tell a socket connetion to a server
is th rough WAN or LAN (modem, ADSL, Cable modem)?
Hi,
?
Is there a way to tell a socket connetion to a server is through WAN or LAN
(modem, ADSL, Cable modem) using?TCP/IP? The most problematic thing I see is
that if a PC uses external?ADSL or cable modem. Since in this case the PC
typically connect to cable or ADSL?modem through an eithernet. I am not sure
if hop count can be used to tell the difference between an?Corpration LAN
and WAN. Also, what about shared?internet connection?through NAT.?Is there
any other thing that can be used to?tell the difference?
?
Thanks.
?
Bi
You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to %%email.unsub%%
You are currently subscribed to ntdev as: xxxxx@appstream.com
To unsubscribe send a blank email to %%email.unsub%%