Home > Archive > Smartphone Developer Forum > January 2006 > AW: How to get memory card serial number?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
AW: How to get memory card serial number?
|
|
|
| Xref: TK2MSFTNGP08.phx.gbl microsoft.public.smartphone.developer:21104
微軟技術社群:
> Hi:
>
> How to get memory card serial number?
>
> Thank you!
Hi have you been succesful? I have the same problem ....
I would apreciate your mail ...
Iggy
| |
|
| Iggy wrote:
> 微軟技術社群:
>
>
>
> Hi have you been succesful? I have the same problem ....
>
> I would apreciate your mail ...
>
> Iggy
try
int cbBuffer = STORAGE_IDENTIFICATION + 256;
STORAGE_IDENTIFICATION* lpsi = (STORAGE_IDENTIFICATION* )new
char[cbBuffer];
hFile = CreateFile(_T("dsk1:"), GENERIC_READ, FILE_SHARE_READ, 0,
OPEN_EXISTING, 0, NULL);
DeviceIoControl(hFile, IOCTL_DISK_GET_STORAGEID, NULL, 0, lpsi, cbBuffer,
&nReturned, NULL));
riki
Today Has Been Two Of Those Days. -- Mike Andrews
ThemeChanger for Smartphone : http://homepages.inspire.net.nz/~gambit/
AbstractStart for Smartphone :
http://homepages.inspire.net.nz/~gambit/AbstractStart/
Latest Betas have WM5 layout and speed dial support
|
|
|
|
|