Storage Identification

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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
>>
>>
>
>
.



Relevant Pages

  • Re: Unexpected reset during installing Windows XP SP 2 English.
    ... When I saw pretty much this same problem, the issue was a bad hard drive (multiple bad sectors - found by running chkdsk after a full long format). ... I tested it with Windows XP SP1 and Windows 2000 and there is a similar behavior. ... Network card: 10/100Mbps ... I/O extension port: serial port x 2+ 2 optional ...
    (microsoft.public.windowsxp.general)
  • Windows CE 5.0 IDE compact flash --> /hard disk/ not shown...
    ... I have compiled a Windows CE 5.0 image that runs on IDE CF card. ... I have added the following modules to Storage Devices ... ATAPI PCI/IDE Storage Block Driver ... Now my Compact Flash card is NOT working correctly: the Windows OS boots normally and no problems there, BUT the contents of the CF card is not shown in Windows. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Embedded w/ either SD Memory or CompactFlash
    ... So, SD just uses standard SPI, and the 4-bit version has the hoops. ... to a fresh and empty card with Windows. ... for complete sectors, which may be not possible in your 8051 due to limited RAM. ... If you need to replace the file on the card always delete it before you write ...
    (sci.electronics.design)
  • Re: Storage Identification
    ... size/characteristics of the card. ... >> I'm looking for a way to obtain the storage id on windows xp... ... >> I am obtaining this number on Windows CE through a DeviceIoControl ...
    (microsoft.public.development.device.drivers)
  • Re: Storage Identification
    ... called "Storage ID" in CE. ... Maxim Shatskih, Windows DDK MVP ... > size/characteristics of the card. ... >>> I am obtaining this number on Windows CE through a DeviceIoControl ...
    (microsoft.public.development.device.drivers)