PC Review


Reply
Thread Tools Rate Thread

Cross platform binary

 
 
Ale
Guest
Posts: n/a
 
      10th Apr 2009
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
 
Reply With Quote
 
 
 
 
Chris Tacke, eMVP
Guest
Posts: n/a
 
      10th Apr 2009
Typically it's done by getting the hard drive or processor serial number.


--

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


"Ale" <(E-Mail Removed)> wrote in message
news:6133e160-b074-420e-bb08-(E-Mail Removed)...
> 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



 
Reply With Quote
 
Batvanio
Guest
Posts: n/a
 
      13th Apr 2009
On Apr 10, 6:45*am, "Chris Tacke, eMVP" <ctacke.at.opennetcf.dot.com>
wrote:
> 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
>
> "Ale" <alessandro...@gmail.com> wrote in message
>
> news:6133e160-b074-420e-bb08-(E-Mail Removed)...
>
>
>
> > 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- Hide quoted text -

>
> - 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...
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Truly cross platform? Ray Cassick Microsoft Dot NET Framework 6 2nd May 2007 05:15 AM
Java(TM) Platform SE binary has stopped working =?Utf-8?B?SmVmZiBIaWxs?= Windows Vista General Discussion 6 16th Mar 2007 05:22 PM
Making a Cross-Platform Cross-Manufacturer Browser Plugin? Chris Shearer Cooper Windows XP Internet Explorer 3 17th Nov 2006 02:43 PM
Cross platform Koger Microsoft Dot NET 3 28th Sep 2004 08:11 AM
cross-platform Timothy V Microsoft Dot NET 1 23rd Aug 2003 09:03 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:01 PM.