|
|
Using
|
|
Knowledge Base ID |
KB07280001 |
| Category | INFORMATION |
|
Effected Product |
N/A |
|
Effected Versions |
N/A |
| Effected Platforms | Windows NT, Windows 2000 |
![]()
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.
| July 28, 2000 | Information posted. |
Please click the following link to send e-mail relating to this PCAUSA Knowledge Base topic:
![]()
| 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
|