Cross platform binary

  • Thread starter Thread starter Ale
  • Start date Start date
A

Ale

I've developed a cross platform sw that work on pc and ppc.

The licence manager works on the device id.
In windows mobile there is the beatyfull GetDeviceUniqueID, but I
can't find the equivalent function for the standard windows os.

I don't want to produce two binary, so I can use only code that I can
compile without error on both framework version.

My question is how can I determinate the deviceId in windows os?

Thanks
 
Typically it's done by getting the hard drive or processor serial number.

--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded communityhttp://community.OpenNETCF.com










- Show quoted text -

You can determine the OS at runtime by something like:

if(Environment.OSVersion.Platform == PlatformID.WinCE)
{
......
}

Some people use desktop's network card MAC address for ID hardware...,
or combination of other HW IDs...
 
Back
Top