Storage Identification
- From: "Peter Wieland [MSFT]" <peterwie@xxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 12 Aug 2005 10:05:16 -0700
I'm not sure what storage ID corresponds to in WinCE. You might try IOCTL_STORAGE_GET_MEDIA_SERIAL_NUMBER, but I don't know how well it would correspond to what wince returns.
The number you're getting is very likely stored on the sectors on the device, just not in ones that are normally accessible to READ and WRITE commands.
-p
-----Original Message-----
From: Thomas Carton [mailto:thomas.carton@xxxxxxxxxxxxxx]
Posted At: Friday, August 12, 2005 1:10 AM
Posted To: microsoft.public.development.device.drivers
Conversation: Storage Identification
Subject: Re: Storage Identification
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@xxxxxxxxxxxxxxxx> wrote in message news:OoI36ttnFHA.2580@xxxxxxxxxxxxxxxxxxxxxxx
> What is Storage ID?
>
> --
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> maxim@xxxxxxxxxxxxxxxx
> http://www.storagecraft.com
>
> "Thomas Carton" <thomas.carton@xxxxxxxxxxxxxx> wrote in message
> news:Oqyd0xnnFHA.3656@xxxxxxxxxxxxxxxxxxxxxxx
>> 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
>>
>>
>
>
.
- Prev by Date: Re: assert in usbport
- Next by Date: Completion port & winsock problem...
- Previous by thread: Re: Storage Identification
- Next by thread: printer driver UI question - newbie
- Index(es):
Relevant Pages
|