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

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
 
C

chris-s

Search older postings on this newsgroup, both these items have come up
in the last few days.

Chris
 
G

Guest

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
 
M

Miguel

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
 
M

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
 
G

Guest

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
 
G

gzim

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
 

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