Cross platform binary

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
 
B

Batvanio

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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top