[Win32utils-devel] hostid on Windows Vista and later

Daniel Berger djberg96 at gmail.com
Sat Jun 21 21:49:51 EDT 2008


Hi all,

According to my research, the equivalent of gethostid() on Windows is 
the IPXAddress member of the Win32_NetworkAdapterConfiguration class. 
You can see the equivalent if you type "ipconfig /all" and look at the 
"Physical Address" member.

However, the MSDN docs say that the IPXAddress member is no longer valid 
on Windows Vista and later. Does anyone know how to get the hostid on 
Vista and later?

Thanks,

Dan


More information about the win32utils-devel mailing list