Maxim
Fri Aug 12 04:57:42 CDT 2005
Look at ATADISK sample from WinCE to determine what particular values are
called "Storage ID" in CE. Then extract the same values in Windows - by
IOCTL_SCSI_GET_INQUIRY_DATA or so.
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com
"Thomas Carton" <thomas.carton@actimagine.com> wrote in message
news:%23tpRJTxnFHA.2472@tk2msftngp13.phx.gbl...
> That's my question !
>
> I found it to be a good way to get a unique identifier for the memory
> card...
> It consists of a string made of decimal numbers (such as "758841430") and
> can be obtained using IOCTL_DISK_GET_STORAGEID on WinCE...
> I guess the driver is the one to provide this number... but don't know the
> logic.
>
> I've read it is a mix between the manufacturer name and the
> size/characteristics of the card.
> But it is not the case... identical cards (same size, ...) from the same
> manufacturer returns different numbers.
>
> And I just found out that the card name is also stored somewhere by the
> driver but not on the sectors available at low level...
> In the MBR the drive name is still "NO NAME".
>
> "Maxim S. Shatskih" <maxim@storagecraft.com> wrote in message
> news:OoI36ttnFHA.2580@TK2MSFTNGP09.phx.gbl...
> > What is Storage ID?
> >
> > --
> > Maxim Shatskih, Windows DDK MVP
> > StorageCraft Corporation
> > maxim@storagecraft.com
> >
http://www.storagecraft.com
> >
> > "Thomas Carton" <thomas.carton@actimagine.com> wrote in message
> > news:Oqyd0xnnFHA.3656@TK2MSFTNGP09.phx.gbl...
> >> Hello,
> >>
> >> I'm looking for a way to obtain the storage id on windows xp...
> >> or at least an explanation about the number obtained when
> >> IOCTL_DISK_GET_STORAGEID is used.
> >>
> >> I am obtaining this number on Windows CE through a DeviceIoControl()
> >> call. A
> >> buffer is then filled with a STORAGE_IDENTIFICATION structure.
> >> But I haven't found how to get the same number on Windows,
> >> IOCTL_DISK_GET_STORAGEID returns "Not supported".
> >>
> >> Thanks in advance !
> >>
> >> --
> >> Thomas Carton
> >>
> >>
> >
> >
>
>