From: jakeyjia on 20 Nov 2006 04:24 i wanna to get the symbol such as "f:\\" via Serial Number or get the Serial Number via "f:\\". maybe it's called Volume Name? hehe ~~~ thank u~ "Uwe Sieber" wrote: > > English isn't my native language... What is a 'Plate Symbol'? > > > jakeyjia wrote: > > i have got the Serial by the way you shown. > > > > but if there are two or more devices that they have only defferent in Serial. > > how to identify these device which is the Device I Want? (i want to identify > > them by Plate Symbol) > > > > hope the solution~ > > > > "Uwe Sieber" wrote: > >> It's possible using a batch of undocumented USB functions. > >> But you can read if from the registry in many places. > >> > >> Sample of an USB drive with serial 058F0O1111B: > >> > >> Disk's Device Path > >> \\?\usbstor#disk&ven_multi&prod_flash_reader&rev_1.00#058f0o1111b&0#{GUID} > >> > >> Drive's Device ID > >> USBSTOR\DISK&VEN_MULTI&PROD_FLASH_READER&REV_1.00\058F0O1111B&0 > >> > >> USB bridge's Device ID > >> USB\VID_058F&PID_6369\058F0O1111B > >> > >> > >> If the USB device has no serial then Windows generates > >> an ID which apparently always contains '&' chars. > >> > >> > >> Uwe > >> > >> > >> >
From: Uwe Sieber on 20 Nov 2006 05:34 jakeyjia wrote: > i wanna to get the symbol such as "f:\\" via Serial Number > or get the Serial Number via "f:\\". > > maybe it's called Volume Name? I call it drive letter or mount point. I've shown the relation between a drive letter and storage volumes in a sample (user mode): http://www.codeproject.com/system/RemoveDriveByLetter.asp Uwe
From: jakeyjia on 20 Nov 2006 06:18 i've read the code, and have a try. the return value of STORAGE_DEVICE_NUMBER is: sdn->DeviceType=7 sdn->DeviceNumber=1 sdn->PartitionNumber=1 it's mean what? i can't get the hint of the Drive Letter. i want the Drive letter~ plz show me? thanks~:) "Uwe Sieber" wrote: > jakeyjia wrote: > > i wanna to get the symbol such as "f:\\" via Serial Number > > or get the Serial Number via "f:\\". > > > > maybe it's called Volume Name? > > I call it drive letter or mount point. I've shown the > relation between a drive letter and storage volumes > in a sample (user mode): > http://www.codeproject.com/system/RemoveDriveByLetter.asp > > > Uwe > >
From: Uwe Sieber on 20 Nov 2006 12:39 Match the DeviceNumber you get for the drive letters with the DeviceNumbers you get in the SetupDi enumerations of GUID_DEVINTERFACE_DISK, GUID_DEVINTERFACE_CDROM or GUID_DEVINTERFACE_FLOPPY. It's all shown in the sample. Uwe jakeyjia wrote: > i've read the code, and have a try. > the return value of STORAGE_DEVICE_NUMBER is: > sdn->DeviceType=7 > sdn->DeviceNumber=1 > sdn->PartitionNumber=1 > > it's mean what? i can't get the hint of the Drive Letter. i want the Drive > letter~ > plz show me? > > thanks~:) > > "Uwe Sieber" wrote: > >> jakeyjia wrote: >>> i wanna to get the symbol such as "f:\\" via Serial Number >>> or get the Serial Number via "f:\\". >>> >>> maybe it's called Volume Name? >> I call it drive letter or mount point. I've shown the >> relation between a drive letter and storage volumes >> in a sample (user mode): >> http://www.codeproject.com/system/RemoveDriveByLetter.asp >> >> >> Uwe >> >>
From: jakeyjia on 20 Nov 2006 21:59 i have tried that code just now. it's very help for me~ thanks a lot~ and some confuses: when i use the CM_Get_Device_ID to get the Device Insetence IDs, there always have the link error. i have include the <cfgmgr32.h> should i to set a lib file? if so , which lib file can be linked? it's closed to success. plz give me some hints? thank u! "Uwe Sieber" wrote: > > Match the DeviceNumber you get for the drive letters with > the DeviceNumbers you get in the SetupDi enumerations > of GUID_DEVINTERFACE_DISK, GUID_DEVINTERFACE_CDROM or > GUID_DEVINTERFACE_FLOPPY. > It's all shown in the sample. > > Uwe > > > jakeyjia wrote: > > i've read the code, and have a try. > > the return value of STORAGE_DEVICE_NUMBER is: > > sdn->DeviceType=7 > > sdn->DeviceNumber=1 > > sdn->PartitionNumber=1 > > > > it's mean what? i can't get the hint of the Drive Letter. i want the Drive > > letter~ > > plz show me? > > > > thanks~:) > > > > "Uwe Sieber" wrote: > > > >> jakeyjia wrote: > >>> i wanna to get the symbol such as "f:\\" via Serial Number > >>> or get the Serial Number via "f:\\". > >>> > >>> maybe it's called Volume Name? > >> I call it drive letter or mount point. I've shown the > >> relation between a drive letter and storage volumes > >> in a sample (user mode): > >> http://www.codeproject.com/system/RemoveDriveByLetter.asp > >> > >> > >> Uwe > >> > >> >
First
|
Prev
|
Next
|
Last
Pages: 1 2 3 4 Prev: mf.sys issues with Vista Next: Microsoft CCID driver & ScardControl |