For Programmers: Free Programming Magazines  


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?
Iggy

2006-01-09, 10:40 pm

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
riki

2006-01-21, 9:57 pm

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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com