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
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
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:
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
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.