[Win32utils-devel] hostid on Windows Vista and later

Wayne Vucenic waynev at gmail.com
Sat Jun 21 23:11:57 EDT 2008

Hi Dan,

I did a little research, and found the following code that's supposed
to do this
on Vista, although I didn't try running it myself:


Since it's C# .NET code it probably isn't exactly what you're looking for, but
maybe it will point out directions for further investigation.   (Of course,
on Vista, .NET 3.0 is always present.)


On Sat, Jun 21, 2008 at 6:49 PM, Daniel Berger <djberg96 at gmail.com> wrote:
> 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
> _______________________________________________
> win32utils-devel mailing list
> win32utils-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/win32utils-devel

More information about the win32utils-devel mailing list