Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Help to generate serial number...


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-29-2007, 08:58 PM
Junior Member
 
Join Date: May 2007
Posts: 37
Default Help to generate serial number...

Is there any good idea to generate serial number for a software? I've tried using hardware library and want to generate serial number from getdeviceid but it seems not working for all devices (including me) --> empty string. Is there any way that can be used to generate serial number and unique for each device?

I want to try this one but don't know how... :
How to read the owner name from the registry. It seems like ascii (64 00 34 00 55 20 etc...,) (not text.)

**But if someone change the owner name to the owner name that already registered so he can use the serial number with the registered name. Hmm... yeah, at least there's some protection...

Need help...
Reply With Quote
  #2 (permalink)  
Old 05-29-2007, 09:10 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,132
Default

I recommend you to use the device name which is stored under LocalMachine\Ident\Name.
The Owner Name value doesn't always exist.
Reply With Quote
  #3 (permalink)  
Old 05-29-2007, 09:22 PM
Junior Member
 
Join Date: May 2007
Posts: 37
Default

Erel, that can be used. But... that's not a unique name. It can be same for many devices (because it is an original device name (if not yet changed, factory setting)). And however, the users can change it to whatever he wants. The protection seems useless with this method, isn't it? Just need one serial number, share it and change the device name to the registered one...

Any better idea?

Btw, thanks Erel.
Reply With Quote
  #4 (permalink)  
Old 05-29-2007, 09:51 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,132
Default

I don't think it is useless.
Anyway you can check if the owner name exists and if it does, read it and calculate the sum of all bytes or convert it to a string (assuming you are not showing the string to the user).
Reply With Quote
  #5 (permalink)  
Old 05-29-2007, 10:15 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,314
Default

I have searched for all key in my registry for the machine serial number, that is found in the back sticker...No success!!!!
I'M Sure that that can be found in some part of the regestry or even in some hidden file...But where?
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD

DLL Version Listing
Reply With Quote
  #6 (permalink)  
Old 05-29-2007, 10:34 PM
Junior Member
 
Join Date: May 2007
Posts: 37
Default

Erel, maybe i'll try your sum of the owner name bytes method. But still find a better method... Actually what Cableguy said is exactly the best way to generate serial number for protection. Can't be cheated.. Yeah, but unfortunately until now I still haven't found way to read the machine serial number out...
Reply With Quote
  #7 (permalink)  
Old 05-30-2007, 11:25 AM
Junior Member
 
Join Date: May 2007
Posts: 46
Default

Cableguy, I'd like to ask you, why are you sure, that this SN is somewhere in PDA ?
Have you found some information about it ?
Petr

Last edited by petrbury : 05-30-2007 at 11:30 AM.
Reply With Quote
  #8 (permalink)  
Old 05-30-2007, 11:34 AM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,314
Default

No I have not, but from my (short) experience with cellphone cranking, i came to notice that most manufacturers hardcode the information and it was aaceessible by the introduction of a pre-formated code...like for imei we entered *#06# and it shows up in the screen....but how to tap into it?
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD

DLL Version Listing
Reply With Quote
  #9 (permalink)  
Old 05-30-2007, 11:54 AM
Junior Member
 
Join Date: May 2007
Posts: 46
Default

Hmm, maybe somebody knows it and will let it know. It would be usefull, I think.
Petr
Reply With Quote
  #10 (permalink)  
Old 05-30-2007, 12:04 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,314
Default

After a few minutes searching google I found this!

http://www.pocketpcdn.com/articles/s...umber2002.html

Maybe someone is up to a DLL?
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD

DLL Version Listing
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Find serial number of SD card after formatting Paul Questions & Help Needed 0 10-19-2008 10:43 PM
serious number crunching cpc6128 Questions & Help Needed 4 03-13-2008 02:24 AM
Generate exe for WinCE.Net 4.2 and 5 gs4322 Questions & Help Needed 5 12-13-2007 02:33 PM
Number format joeyschlatter Questions & Help Needed 1 10-30-2007 05:17 PM
Serial Number Cableguy Questions & Help Needed 4 05-05-2007 08:06 AM


All times are GMT. The time now is 01:46 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0