Hi,
I wonder how to get the network connection speed info such as shown in
network connection icon in status bar when the mouse curor is overlapped to
that icon? What kind of API or IOCTL to use to get that thing, preferably in
usr mode.
Thank you.
Bi
query info on network connection speed.See Internet Protocol helper API. I believe you need to use GetInterfaceInfo & a couple of GetIfEntry or just GetIfTable calls.
Regards,
Timur
“Bi Chen” wrote in message news:xxxxx@ntdev…
Hi,
I wonder how to get the network connection speed info such as shown in network connection icon in status bar when the mouse curor is overlapped to that icon? What kind of API or IOCTL to use to get that thing, preferably in usr mode.
Thank you.
Bi
Thanks Timur.
Bi
-----Original Message-----
From: Timur Safin [mailto:xxxxx@lantel.ru]
Sent: Wednesday, October 09, 2002 2:01 AM
To: NT Developers Interest List
Subject: [ntdev] Re: query info on network connection speed.
See Internet Protocol helper API. I believe you need to use GetInterfaceInfo
& a couple of GetIfEntry or just GetIfTable calls.
Regards,
Timur
“Bi Chen” < xxxxx@AppStream.com mailto:xxxxx > wrote in
message news:xxxxx@ntdev news:xxxxx …
Hi,
I wonder how to get the network connection speed info such as shown in
network connection icon in status bar when the mouse curor is overlapped to
that icon? What kind of API or IOCTL to use to get that thing, preferably in
usr mode.
Thank you.
Bi
—
You are currently subscribed to ntdev as: xxxxx@appstream.com
To unsubscribe send a blank email to %%email.unsub%%</news:xxxxx></mailto:xxxxx>
Bi,
You would do this by issuing an OID_GEN_LINK_SPEED, usually sent by a protocol driver to the miniport via NdisRequest. However, you can query this (and other OIDs) from userspace via WMI. WMI is not installed by default in 9x, so if you are targeting that platform you need to be aware of that.
Or you can follow the MACADDR sample in the NT4 DDK. It obtains the adapter’s MAC address through another OID (OID_802_3_CURRENT_ADDRESS), but you can modify the sample for the LINK_SPEED OID. It opens the miniport via CreateFile and sends IOCTL_NDIS_QUERY_GLOBAL_STATS down via DeviceIoControl with the OID. IOCTL_NDIS_QUERY_GLOBAL_STATS is only available on NT platforms; it does not exist in 9x. See the DDK for more information on IOCTL_NDIS_QUERY_GLOBAL_STATS.
Hope this helps.
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: Tuesday, October 08, 2002 5:56 PM
To: NT Developers Interest List
Subject: [ntdev] query info on network connection speed.
Hi,
I wonder how to get the network connection speed info such as shown in network connection icon in status bar when the mouse curor is overlapped to that icon? What kind of API or IOCTL to use to get that thing, preferably in usr mode.
Thank you.
Bi
You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to %%email.unsub%%