Click here to Skip to main content
16,005,206 members
Home / Discussions / Mobile
   

Mobile

 
GeneralRe: Pocket PC form inheritance Pin
Mike Dimmick26-Jul-05 1:15
Mike Dimmick26-Jul-05 1:15 
GeneralRAS server Pin
Marc Soleda12-Jul-05 0:49
Marc Soleda12-Jul-05 0:49 
GeneralVarious IPC mechanisms in Win CE Pin
JustAndy11-Jul-05 20:37
JustAndy11-Jul-05 20:37 
Generaldatagrid connecting Pin
Member 190267911-Jul-05 11:58
Member 190267911-Jul-05 11:58 
GeneralI need get a serial number of Pocket PC hardware Pin
FErnando Aguirre11-Jul-05 6:39
FErnando Aguirre11-Jul-05 6:39 
GeneralRe: I need get a serial number of Pocket PC hardware Pin
Utku KAYA30-Jul-05 21:50
Utku KAYA30-Jul-05 21:50 
GeneralRe: I need get a serial number of Pocket PC hardware Pin
Utku KAYA30-Jul-05 21:53
Utku KAYA30-Jul-05 21:53 
GeneralHelp!! HDD serial number flipped every 2 bytes! Pin
CodeCraze10-Jul-05 17:03
CodeCraze10-Jul-05 17:03 
Hi,

I wrote a Windows CE.NET 4.2 program to get the firmware serial number from an IDE harddisk. The platform isn't pocket pc. It is a CE.NET embedded device using AMD Geode (x86-based) CPU with Single-board computer and an IDE harddisk.

The reason to get the serial number is to use it as a key for licensing a software. I used the DeviceIoControl Win32 API with the io control code of IOCTL_DISK_GET_STORAGEID (0x709). It worked. However, when I double check with the actual serial number printed on the hdd itself, I found that every 2 bytes of the number was flipped.

A simple solution could be to simply flip the bytes back but I wish to know the exact reason why the bytes were flipped. Is it because the API actually reads every 2 bytes of the serial number as WORD? This could be the case since probably the number is stored as a character string on the firmware.

e.g. "1234"

But if the API reads word by word, and the Geode is x86-based (little endian), the flipping will occur which will cause it to be "2143". In that case, I would need to check the processor's endianness before reading the serial number. What then is the way to get the CPU's endianness?

I would wish to develop a generic solution and not be tied down to a certain hardware platform. So I would like to ask if any of you had encountered such a similar case be it on an embedded CE.NET device or PPC 2003 device.

Your help is greatly appreciated.

Thanks in advance.

Best Regards,
Charles Wong

Astronomy Hub
The International Astronomy and Space Forum Community
Where Astronomers and Space-Minded Enthusiasts Meet
http://astro.jconserv.net
GeneralRe: Help!! HDD serial number flipped every 2 bytes! Pin
Mike Dimmick12-Jul-05 2:26
Mike Dimmick12-Jul-05 2:26 
GeneralStarting a WinCE application through test app Pin
Anonymous7-Jul-05 4:38
Anonymous7-Jul-05 4:38 
GeneralRe: Starting a WinCE application through test app Pin
Anonymous7-Jul-05 6:38
Anonymous7-Jul-05 6:38 
GeneralDIfference between Symbian C++ and ANCI C++ Pin
PradeepFernando5-Jul-05 17:14
PradeepFernando5-Jul-05 17:14 
GeneralRe: DIfference between Symbian C++ and ANCI C++ Pin
MKlucher5-Jul-05 18:51
MKlucher5-Jul-05 18:51 
GeneralDirectShow on PocketPC Pin
Member 15945645-Jul-05 0:09
Member 15945645-Jul-05 0:09 
GeneralRe: DirectShow on PocketPC Pin
MKlucher5-Jul-05 6:34
MKlucher5-Jul-05 6:34 
GeneralRe: DirectShow on PocketPC Pin
llucas_l5-Jul-05 20:47
llucas_l5-Jul-05 20:47 
GeneralRe: DirectShow on PocketPC Pin
MKlucher5-Jul-05 21:43
MKlucher5-Jul-05 21:43 
GeneralRegarding My Project Pin
loyolabud12-Jul-05 21:37
loyolabud12-Jul-05 21:37 
GeneralRe: Regarding My Project Pin
MKlucher4-Jul-05 13:16
MKlucher4-Jul-05 13:16 
GeneralRe: Regarding My Project Pin
Pradeep_C4-Jul-05 20:13
Pradeep_C4-Jul-05 20:13 
Generalcontext menu does not pop up in windows CE .Net based PDA Pin
Walk2Pack29-Jun-05 8:29
Walk2Pack29-Jun-05 8:29 
GeneralCompact Framework v2 Istallation Pin
Alper KARS29-Jun-05 2:44
Alper KARS29-Jun-05 2:44 
GeneralRe: Compact Framework v2 Istallation Pin
João Paulo Figueira29-Jun-05 4:02
professionalJoão Paulo Figueira29-Jun-05 4:02 
GeneralRe: Compact Framework v2 Istallation Pin
Alper KARS29-Jun-05 4:33
Alper KARS29-Jun-05 4:33 
QuestionDetermining Max Image Display Size for WAP pages? Pin
Darren Weir28-Jun-05 21:18
Darren Weir28-Jun-05 21:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.