hallo,
ik gebruik de NdisRequest om het mac adres op te halen. Het nadeel hieraan is dat je netbios voor de betreffende NIC netbios aan moet hebben staan.
ipconfig /all bijvoorbeeld kan het ook blijkbaar zonder netbios doen. Iemand die weet hoe dit moet met win32 apicalls (zonder gebruik te maken van netbios)?
Daarbij kan ipconfig /all ook mac adres ophalen als de nic niet ge-connect is.
ik gebruik de NdisRequest om het mac adres op te halen. Het nadeel hieraan is dat je netbios voor de betreffende NIC netbios aan moet hebben staan.
ipconfig /all bijvoorbeeld kan het ook blijkbaar zonder netbios doen. Iemand die weet hoe dit moet met win32 apicalls (zonder gebruik te maken van netbios)?
Daarbij kan ipconfig /all ook mac adres ophalen als de nic niet ge-connect is.
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
Mitsubishi Warmtepomp Uitlezen / Besturen | Optimaliseren