From: jakeyjia on 21 Nov 2006 01:11 thank u! i got it~ can you give me your E-mail for the contact~ mine is: jakeyjia(a)gmail.com i'm a rookie in this field. thanks a lot again! "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 > >> > >> >
From: Tim Roberts on 23 Nov 2006 13:21 jakeyjia <jakeyjia(a)discussions.microsoft.com> wrote: >thank u! >i got it~ >can you give me your E-mail for the contact~ >mine is: jakeyjia(a)gmail.com > >i'm a rookie in this field. Hmm, you MUST be. The sender's e-mail address is included in the header of every message (unless they have specifically shrouded it). However, the more important point is that it is almost never a good idea to take a newsgroup thread to private email. By keeping the thread here in public, others with the same questions (and there are ALWAYS others with the same questions) can benefit from the discussion. -- Tim Roberts, timr(a)probo.com Providenza & Boekelheide, Inc.
From: jakeyjia on 27 Nov 2006 22:43 Here comes new problem! rencently, i find a U-disk and it's DriveType is FIXED which get from "GetDriveType( )". i get the drive letter of U-disk via their Device Type. but this kinds of U-disk is not work. i thoungt a way to distinguish it by checking the Device Instantce ID, there have a words such as "\\?\usbstor#disk&ven.....", and "usbstor" show the device type is usb storage. BUT, in this case, i can't distinguish the type between U-disk and the harddisk which connected to computer via usb line. Because all these two kinds of device have the same property in DeviceType(FIXED) and Device Instantce ID(usbstor). what should i do? ps: i do all these under user-mode. maybe it can be soulved under the Kernle-mode. "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: Uwe Sieber on 28 Nov 2006 03:14 jakeyjia wrote: > Here comes new problem! > rencently, i find a U-disk and it's DriveType is FIXED which get from > "GetDriveType( )". i get the drive letter of U-disk via their Device Type. > but this kinds of U-disk is not work. What is an 'U-disk'? Get my tool ListUsbDrives: http://www.uwe-sieber.de/files/listusbdrives.zip Start it with debug enabled: listusbdrives -d It shows very detailed then how it collects information from several enumerations and how it matches them by their device numbers. Uwe
From: jakeyjia on 28 Nov 2006 20:51 urh... U-disk maybe called USB Flash Drive. i don't know how to desicribe it. finally, i found that i do not need to distinguish the type between USB Flash Drive with FIXED drive type(common USB Flash Drive is REMOVEABLE) and the harddisk which connected to computer via usb line. Because the Drive Type is made by the manufacturers, they can sign their product with ethier FIXED or REMOVEABLE. i got your tool and it is very useful tool. thank u again and again~~~ hehe~ "Uwe Sieber" wrote: > jakeyjia wrote: > > Here comes new problem! > > rencently, i find a U-disk and it's DriveType is FIXED which get from > > "GetDriveType( )". i get the drive letter of U-disk via their Device Type. > > but this kinds of U-disk is not work. > > What is an 'U-disk'? > > Get my tool ListUsbDrives: > http://www.uwe-sieber.de/files/listusbdrives.zip > > Start it with debug enabled: > listusbdrives -d > > It shows very detailed then how it collects information > from several enumerations and how it matches them by > their device numbers. > > > Uwe > >
First
|
Prev
|
Next
|
Last
Pages: 1 2 3 4 Prev: mf.sys issues with Vista Next: Microsoft CCID driver & ScardControl |