C
chrkon
Hello everybody,
our software (c# on .CF) must handle different sd cards. So I need a SD card
specific information to identify a SD card.
My first idea was to use "IOCTL_STORAGE_GET_DEVICEID" via P/Invoke
(DeviceIoControl).
This works fine on a Windows Mobile 5 Hardware (Archer, Juniper Systems).
Unfortunatedly our customers have still older handheld hardware (Panasonic
CF-P1 with Pocket PC 2002). On these devices calling the DeviceIoControl
funktion with the "... _GET_DEVICEID" parameter fails with SD cards (Error
0x57 - wrong parameter). On the same system the function will work with
CF-Cards. So I assume, that this is an issue of the device. But I have no
chance to get a patch from Panasonic for this (old device).
So I have to find an other way to identify the different SD cards.
(I don't want to create additional files, because it would be possible to
exchange these files manually between the cards.)
My second idea was to use the Volume ID of the SD Card. Most SD Cards use
the FAT Filesystem. And this filesystem has an ID. You can see it if you call
the "dir" command on the comand shell. This information will be changed if
the SD card is formatted, but for our needs it is OK.
On the desktop PC there is the API call "GetVolumeInformation" which deliver
this information. But I have not found something like this for mobile
systems.
Does anybody know how I can read this ID?
A different way to get a "SD card specific ID" would fine, too.
Kind regards,
Christof Konstantinopoulos
(Dortmund, Germany)
our software (c# on .CF) must handle different sd cards. So I need a SD card
specific information to identify a SD card.
My first idea was to use "IOCTL_STORAGE_GET_DEVICEID" via P/Invoke
(DeviceIoControl).
This works fine on a Windows Mobile 5 Hardware (Archer, Juniper Systems).
Unfortunatedly our customers have still older handheld hardware (Panasonic
CF-P1 with Pocket PC 2002). On these devices calling the DeviceIoControl
funktion with the "... _GET_DEVICEID" parameter fails with SD cards (Error
0x57 - wrong parameter). On the same system the function will work with
CF-Cards. So I assume, that this is an issue of the device. But I have no
chance to get a patch from Panasonic for this (old device).
So I have to find an other way to identify the different SD cards.
(I don't want to create additional files, because it would be possible to
exchange these files manually between the cards.)
My second idea was to use the Volume ID of the SD Card. Most SD Cards use
the FAT Filesystem. And this filesystem has an ID. You can see it if you call
the "dir" command on the comand shell. This information will be changed if
the SD card is formatted, but for our needs it is OK.
On the desktop PC there is the API call "GetVolumeInformation" which deliver
this information. But I have not found something like this for mobile
systems.
Does anybody know how I can read this ID?
A different way to get a "SD card specific ID" would fine, too.
Kind regards,
Christof Konstantinopoulos
(Dortmund, Germany)