MACADDR II
|
| Adapter "Title" | |
| Adapter Description | |
| Adapter Name (name passed to NdisOpenAdapter) |
For each MAC device found the program attempts to use the IOCTL_NDIS_QUERY_GLOBAL_STATS DeviceIoControl call to fetch:
| OID_GEN_MEDIA_IN_USE | |
| OID_XXX_CURRENT_ADDRESS. |
Other information of interest to programmers is displayed as the MACADDR II application runs.
The output that you will see on your workstation will, of course, be different from the samples shown below. In addition, you need to understand that the NetCard registry enumeration mechanism will return all adapters that are currently "known" by the system. This includes adapters that may not be currently running.
For example, if you have installed a PC Card adapter but it is currently removed, the PC Card adapter will be returned in the enumeration. You would see an error message (e.g., CreateFile error 2) when this adapter is accessed.
In addition, MACADDR II has not been written to support all network media. A framework (current media switch table) can be easily extended to recognize and handle other media. If you make and test a modification to support other media, please send it to use to be included in a future release of MACADDR II.
Here are the sample outputs...
MACADDR II Sample For Windows NT And Windows 2000 V1.00.00.01.
Copyright (c) 2000-2008 Printing Communications Associates, Inc.
<http://www.pcausa.com>
All rights reserved.
Running On Windows NT
+++++++++++++++++++++++++++++++++++
[1] 3Com Fast EtherLink XL Adapter (3C905)
3Com Fast EtherLink XL PCI 10/100Mb Adapter (3C905)
\Device\El90x1
Query On MS-DOS Device Name: "El90x1"
DOS Device Name Existed.
LinkName: "\Device\El90x1"
Medium: 802.3
Query On MS-DOS Device Name: "El90x1"
DOS Device Name Existed.
LinkName: "\Device\El90x1"
Mac address = 00-60-08-A3-29-D0
+++++++++++++++++++++++++++++++++++
[3] Intel EtherExpress PRO Adapter Bus 1 Slot 4
Intel EtherExpress PRO Adapter
\Device\E100B3
Query On MS-DOS Device Name: "E100B3"
DOS Device Name Existed.
LinkName: "\Device\E100B3"
Medium: 802.3
Query On MS-DOS Device Name: "E100B3"
DOS Device Name Existed.
LinkName: "\Device\E100B3"
Mac address = 00-90-27-8C-B4-91
+++++++++++++++++++++++++++++++++++
[4] Intel EtherExpress PRO Adapter Bus 1 Slot 5
Intel EtherExpress PRO Adapter
\Device\E100B4
Query On MS-DOS Device Name: "E100B4"
DOS Device Name Existed.
LinkName: "\Device\E100B4"
Medium: 802.3
Query On MS-DOS Device Name: "E100B4"
DOS Device Name Existed.
LinkName: "\Device\E100B4"
Mac address = 00-90-27-8C-B4-92
MACADDR II Sample For Windows NT And Windows 2000 V1.00.00.01.
Copyright (c) 2000-2008 Printing Communications Associates, Inc.
<http://www.pcausa.com>
All rights reserved.
Running On Windows 2000
+++++++++++++++++++++++++++++++++++
[1] 3Com EtherLink XL 10/100 PCI TX NIC (3C905B-TX)
3Com EtherLink XL 10/100 PCI TX NIC (3C905B-TX)
\Device\{4750E11D-415E-4329-A6C5-645ACDCB1068}
Query On MS-DOS Device Name: "{4750E11D-415E-4329-A6C5-645ACDCB1068}"
DOS Device Name Existed.
LinkName: "\Device\{4750E11D-415E-4329-A6C5-645ACDCB1068}"
Medium: 802.3
Query On MS-DOS Device Name: "{4750E11D-415E-4329-A6C5-645ACDCB1068}"
DOS Device Name Existed.
LinkName: "\Device\{4750E11D-415E-4329-A6C5-645ACDCB1068}"
Mac address = 00-50-04-87-18-73
+++++++++++++++++++++++++++++++++++
[14] D-Link USB LAN Adapter
D-Link USB LAN Adapter
\Device\{A587CD7B-7308-41D8-8C51-BA46153EBC5C}
Query On MS-DOS Device Name: "{A587CD7B-7308-41D8-8C51-BA46153EBC5C}"
DOS Device Name Existed.
LinkName: "\Device\{A587CD7B-7308-41D8-8C51-BA46153EBC5C}"
Medium: 802.3
Query On MS-DOS Device Name: "{A587CD7B-7308-41D8-8C51-BA46153EBC5C}"
DOS Device Name Existed.
LinkName: "\Device\{A587CD7B-7308-41D8-8C51-BA46153EBC5C}"
Mac address = 00-E0-98-76-5B-7F
October 16, 2008 - Fixed download problem.
August 31, 2001 - Changed version number to V5.00.13.51 to track other PCAUSA products.
July 28, 2000 - Released V1.00.00.01.
Please let us know if you encounter difficulties using this program or if you have suggestions for improvement.
If you find missing functionality, have the time to make improvements and have the inclination to share your work, please let us know. We will consider incorporating your improvement and posting them here.
The MACADDR II software is provided "as is", without any guarantee made as to its suitability or fitness for any particular use. It may contain bugs, so use of this tool is at your own risk. PCAUSA takes no responsibly for any damage that may unintentionally be caused through its use.
You may use MacAddr II source code in your own product, either free or commercial, without requesting permission of PCAUSA. You will not owe PCAUSA any royalty for your use of code derived from MACADDR II. However, informing PCAUSA of products which benefit from PCAUSA code is encouraged.
You may NOT redistribute MacAddr II sources or executables or any of the MacAddr components that you downloaded without express written permission of PCAUSA.
If someone wants these items, then they must download them from the PCAUSA website.
![]()
The PCAUSA MacAddr II sample code can be downloaded from the following URL:
macaddrsdk.exe
53.50KB (54784 bytes)
.
|
PCAUSA Home ·
Privacy Statement ·
Products ·
Ordering ·
Support ·
Utilities ·
Resources
|