How to hard-reset a pocket pc in c#?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, how can I make a hard reset in c# on a pocket pc? My second question is:
How can I read out the aviable and full memory of a storage card? thx
juvi
 
Search older postings on this newsgroup, both these items have come up
in the last few days.

Chris
 
Could you please send me the links to the soutions of my question. ( I did
not find one). Or just tell me how it works...thx juvi
 
In order to do a Soft Reset:
P/Invoke KernelIOControl with the IOCTL_HAL_REBOOT
In order to do a Hard Reset:
P/Invoke SetCleanRebootFlag
P/Invoke KernelIOControl with the IOCTL_HAL_REBOOT

Regards

Miguel
 
Available en Full Memory of a Storage Card can be obtained as follows:
P/Invoke FindFirstFlashCard / FindNextFlashCard in order to obtain the
foldernames programmatically
P/Invoke GetDiskFreeSpaceEx with first parameter : \ 'foldername' \Vol:

Regards

Miguel
 
Ok, the hard reset works now, but I am not able to get the storage card
problem working. And what about the storage card name? If I write the code
for the name SD Card, then it would only display the infos for storage cards
with that labled name?????? So please post me a working code sample. thx
juvi
 
how about writing the code by yourself? RTFM or just google for it!

"...please give me the link, please give me the code" is not really
friendly...

gzim
 
Back
Top