| Data Store Entry |
Location | Created | Actions |
From http://www.iseran.com/Win32/FAQ/section6.html#106:
Not all machines have a real MAC address, only those with LAN cards. Given that fact, an NdisRequest() for OID_802_3_CURRENT_ADDRESS will give you the right answer, provided the NetBIOS protocol stack is installed on the PC. This used to be common on Win95 boxes, but with Win98 and NT installing TCP/IP as the default stack, it is becoming rarer.
NB: The OLE function CoCreateGUID() will try to create a unique GUID, the last 64 bits of which are usually the MAC address of a card on the PC. Do not rely on this 100% of the time, as the algorithm does other things when running on a PC without a network interface. And on NT5 it stops using the MAC address at all, for privacy reasons.
|
Windows API
|
1/27/2002 3:52 PM
jcohen
|
New Window
Move/Edit
|
|