Using
IOCTL_NDIS_QUERY_GLOBAL_STATS
On Windows 2000

 

Knowledge Base ID

KB07280001
Category INFORMATION

Effected Product

N/A

Effected Versions

N/A
Effected Platforms Windows NT, Windows 2000

 

Discussion

The Windows NT 4.0 DDK includes a sample application called MACADDR. The MACADDR sample illustrated the use of Win32 DeviceIoControl calls to access NDIS MAC drivers using IOCTL_NDIS_QUERY_GLOBAL_STATS. Using this IOCTL a Win32 application can have limited access to a NDIS MAC driver without needing the support of a companion NDIS protocol driver. This can be useful to network-aware applications - especially MAC vendor diagnostic tools.

The technique illustrated in the NT 4.0 DDK MACADDR sample actually works on Windows 2000. However, it is not straightforward to use because on Windows 2000 the "Adapter Name" is the HEX representation of a 128-bit GUID. The MACADDR sample is omitted from the Windows 2000 DDK, probably because it would simply be impractical to enter the GUID from the command line.

PCAUSA has developed the MACADDR II Sample Application that illustrates use of IOCTL_NDIS_QUERY_GLOBAL_STATS on both Windows NT and Windows 2000. It works by enumerating the NetCard registry key and automatically querying each known adapter. This eliminates the need to manually enter the MAC GUID.

[ MACADDR II Information ]

Status

July 28, 2000 Information posted.

Comments

Please click the following link to send e-mail relating to this PCAUSA Knowledge Base topic:

<Send Mail To KB07280001 Technical Contact>

 

Keywords NDIS, MACADDR, IOCTL_NDIS_QUERY_GLOBAL_STATS
Created July 28, 2000
Last Reviewed July 28, 2000

 
 

PCAUSA Home · Privacy Statement · Products · Ordering · Support · Utilities · Resources
Mailing Lists  · PCAUSA Newsletter · PCAUSA Discussion List
 
Rawether for Windows and WinDis 32 are trademarks of Printing Communications Assoc., Inc. (PCAUSA)
Microsoft, MS, Windows, Windows 95, Windows 98, Windows Millennium, Windows 2000, and Win32 are registered trademarks and Visual C++ and Windows NT are trademarks of the Microsoft Corporation.
Send mail to webmaster@pcausa.com with questions or comments about this web site.
Copyright © 1996-2008 Printing Communications Assoc., Inc. (PCAUSA)
Last modified: December 31, 2007