我只插入了一个USB闪存驱动器。
On Windows XP - 32 Bit
-----------------------
Drive C:
ProductId: ST3160215AS
ProductRevision: 3.AAD
DeviceType: 7, DeviceNumber: 0, PartitionNumber: 1
DevicePath: \\?\ide#diskst3160215as_____________________________3.aad___#5&2
7db0ed4&0&0.0.0#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}
Class: DiskDrive
Hardware ID: IDE\DiskST3160215AS_____________________________3.AAD___
Friendly Name: ST3160215AS
Physical Device Object Name: \Device\Ide\IdeDeviceP2T0L0-5
Device Description: Disk drive
Parent Device Instance ID: PCIIDE\IDECHANNEL\4&1C1E8A11&0&0
Parent of Parent Device Instance ID: PCI\VEN_8086&DEV_27C0&SUBSYS_72671462&R
EV_01\3&11583659&0&FA
DeviceInstanceId: IDE\DISKST3160215AS_____________________________3.AAD___\5
&27DB0ED4&0&0.0.0
Drive D:
ProductId: ST3160215AS
ProductRevision: 3.AAD
DeviceType: 7, DeviceNumber: 0, PartitionNumber: 2
DevicePath: \\?\ide#diskst3160215as_____________________________3.aad___#5&2
7db0ed4&0&0.0.0#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}
Class: DiskDrive
Hardware ID: IDE\DiskST3160215AS_____________________________3.AAD___
Friendly Name: ST3160215AS
Physical Device Object Name: \Device\Ide\IdeDeviceP2T0L0-5
Device Description: Disk drive
Parent Device Instance ID: PCIIDE\IDECHANNEL\4&1C1E8A11&0&0
Parent of Parent Device Instance ID: PCI\VEN_8086&DEV_27C0&SUBSYS_72671462&R
EV_01\3&11583659&0&FA
DeviceInstanceId: IDE\DISKST3160215AS_____________________________3.AAD___\5
&27DB0ED4&0&0.0.0
Drive E:
ProductId: ST3160215AS
ProductRevision: 3.AAD
DeviceType: 7, DeviceNumber: 0, PartitionNumber: 3
DevicePath: \\?\ide#diskst3160215as_____________________________3.aad___#5&2
7db0ed4&0&0.0.0#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}
Class: DiskDrive
Hardware ID: IDE\DiskST3160215AS_____________________________3.AAD___
Friendly Name: ST3160215AS
Physical Device Object Name: \Device\Ide\IdeDeviceP2T0L0-5
Device Description: Disk drive
Parent Device Instance ID: PCIIDE\IDECHANNEL\4&1C1E8A11&0&0
Parent of Parent Device Instance ID: PCI\VEN_8086&DEV_27C0&SUBSYS_72671462&R
EV_01\3&11583659&0&FA
DeviceInstanceId: IDE\DISKST3160215AS_____________________________3.AAD___\5
&27DB0ED4&0&0.0.0
Drive F:
ProductId: ST3160215AS
ProductRevision: 3.AAD
DeviceType: 7, DeviceNumber: 0, PartitionNumber: 4
DevicePath: \\?\ide#diskst3160215as_____________________________3.aad___#5&2
7db0ed4&0&0.0.0#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}
Class: DiskDrive
Hardware ID: IDE\DiskST3160215AS_____________________________3.AAD___
Friendly Name: ST3160215AS
Physical Device Object Name: \Device\Ide\IdeDeviceP2T0L0-5
Device Description: Disk drive
Parent Device Instance ID: PCIIDE\IDECHANNEL\4&1C1E8A11&0&0
Parent of Parent Device Instance ID: PCI\VEN_8086&DEV_27C0&SUBSYS_72671462&R
EV_01\3&11583659&0&FA
DeviceInstanceId: IDE\DISKST3160215AS_____________________________3.AAD___\5
&27DB0ED4&0&0.0.0
Drive G:
VendorId: JetFlash
ProductId: Transcend 2GB
ProductRevision: 8.07
DeviceType: 7, DeviceNumber: 1, PartitionNumber: 1
DevicePath: \\?\usbstor#disk&ven_jetflash&prod_transcend_2gb&rev_8.07#e3o29u
13&0#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}
Class: DiskDrive
Hardware ID: USBSTOR\DiskJetFlashTranscend_2GB___8.07
Friendly Name: JetFlash Transcend 2GB USB Device
Physical Device Object Name: \Device\00000080
Device Description: Disk drive
Parent Device Instance ID: USB\VID_058F&PID_6387\E3O29U13
Parent of Parent Device Instance ID: USB\ROOT_HUB20\4&2B6971CE&0
DeviceInstanceId: USBSTOR\DISK&VEN_JETFLASH&PROD_TRANSCEND_2GB&REV_8.07\E3O2
9U13&0
Drive G: is removeable
Drive X:
When i run the below code on windows7 - 32 , i get the below result
i have plugged the same usb pen drive which is used on windows xp - 32 bit...
On Windows 7 - 32 Bit
-----------------------
Drive C:
ProductId: Hitachi HDS721616PLA380
ProductRevision: P22OAB3A
DeviceType: 7, DeviceNumber: 0, PartitionNumber: 2
DevicePath: \\?\ide#diskhitachi_hds721616pla380_________________p22oab3a#5&4
be38f&0&0.0.0#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}
Class: DiskDrive
Hardware ID: USBSTOR\DiskJetFlashTranscend_2GB___8.07
Friendly Name: JetFlash Transcend 2GB USB Device
Physical Device Object Name: \Device\0000006f
Device Description: Disk drive
Parent Device Instance ID: USB\VID_058F&PID_6387\E3O29U13
Parent of Parent Device Instance ID: USB\ROOT_HUB20\4&4E31217&0
DeviceInstanceId: USBSTOR\DISK&VEN_JETFLASH&PROD_TRANSCEND_2GB&REV_8.07\E3O2
9U13&0
Drive C: is removeable
Drive D:
ProductId: Hitachi HDS721616PLA380
ProductRevision: P22OAB3A
DeviceType: 7, DeviceNumber: 0, PartitionNumber: 3
DevicePath: \\?\ide#diskhitachi_hds721616pla380_________________p22oab3a#5&4
be38f&0&0.0.0#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}
Class: DiskDrive
Hardware ID: USBSTOR\DiskJetFlashTranscend_2GB___8.07
Friendly Name: JetFlash Transcend 2GB USB Device
Physical Device Object Name: \Device\0000006f
Device Description: Disk drive
Parent Device Instance ID: USB\VID_058F&PID_6387\E3O29U13
Parent of Parent Device Instance ID: USB\ROOT_HUB20\4&4E31217&0
DeviceInstanceId: USBSTOR\DISK&VEN_JETFLASH&PROD_TRANSCEND_2GB&REV_8.07\E3O2
9U13&0
Drive D: is removeable
Drive E:
ProductId: Hitachi HDS721616PLA380
ProductRevision: P22OAB3A
DeviceType: 7, DeviceNumber: 0, PartitionNumber: 4
DevicePath: \\?\ide#diskhitachi_hds721616pla380_________________p22oab3a#5&4
be38f&0&0.0.0#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}
Class: DiskDrive
Hardware ID: USBSTOR\DiskJetFlashTranscend_2GB___8.07
Friendly Name: JetFlash Transcend 2GB USB Device
Physical Device Object Name: \Device\0000006f
Device Description: Disk drive
Parent Device Instance ID: USB\VID_058F&PID_6387\E3O29U13
Parent of Parent Device Instance ID: USB\ROOT_HUB20\4&4E31217&0
DeviceInstanceId: USBSTOR\DISK&VEN_JETFLASH&PROD_TRANSCEND_2GB&REV_8.07\E3O2
9U13&0
Drive E: is removeable
Drive F:
ProductId: Hitachi HDS721616PLA380
ProductRevision: P22OAB3A
DeviceType: 7, DeviceNumber: 0, PartitionNumber: 5
DevicePath: \\?\ide#diskhitachi_hds721616pla380_________________p22oab3a#5&4
be38f&0&0.0.0#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}
Class: DiskDrive
Hardware ID: USBSTOR\DiskJetFlashTranscend_2GB___8.07
Friendly Name: JetFlash Transcend 2GB USB Device
Physical Device Object Name: \Device\0000006f
Device Description: Disk drive
Parent Device Instance ID: USB\VID_058F&PID_6387\E3O29U13
Parent of Parent Device Instance ID: USB\ROOT_HUB20\4&4E31217&0
DeviceInstanceId: USBSTOR\DISK&VEN_JETFLASH&PROD_TRANSCEND_2GB&REV_8.07\E3O2
9U13&0
Drive F: is removeable
Drive G:
VendorId: JetFlash
ProductId: Transcend 2GB
ProductRevision: 8.07
DeviceType: 7, DeviceNumber: 1, PartitionNumber: 1
DevicePath: \\?\usbstor#disk&ven_jetflash&prod_transcend_2gb&rev_8.07#e3o29u
13&0#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}
Class: DiskDrive
Hardware ID: IDE\DiskHitachi_HDS721616PLA380_________________P22OAB3A
Friendly Name: Hitachi HDS721616PLA380 ATA Device
Physical Device Object Name: \Device\Ide\IdeDeviceP1T0L0-1
Device Description: Disk drive
Parent Device Instance ID: PCIIDE\IDECHANNEL\4&35CD87E&0&0
Parent of Parent Device Instance ID: PCI\VEN_8086&DEV_27C0&SUBSYS_27C08086&R
EV_01\3&2411E6FE&1&FA
DeviceInstanceId: IDE\DISKHITACHI_HDS721616PLA380_________________P22OAB3A\5
&4BE38F&0&0.0.0
Drive G: is removeable
Drive Z:
块引用
---------------------------------------------------------------------------------
请看以下两个结果...
我在XP和Windows7系统上插入了同一个USB设备,但结果有所不同...
请检查两个操作系统上G驱动器的结果...
Drive G: ( On Windows 7 - 32 bit )
-----------------------------------
VendorId: JetFlash
ProductId: Transcend 2GB
ProductRevision: 8.07
DeviceType: 7, DeviceNumber: 1, PartitionNumber: 1
DevicePath: \\?\usbstor#disk&ven_jetflash&prod_transcend_2gb&rev_8.07#e3o29u
13&0#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}
Class: DiskDrive
Hardware ID: IDE\DiskHitachi_HDS721616PLA380_________________P22OAB3A
Friendly Name: Hitachi HDS721616PLA380 ATA Device
Physical Device Object Name: \Device\Ide\IdeDeviceP1T0L0-1
Device Description: Disk drive
Parent Device Instance ID: PCIIDE\IDECHANNEL\4&35CD87E&0&0
Parent of Parent Device Instance ID: PCI\VEN_8086&DEV_27C0&SUBSYS_27C08086&R
EV_01\3&2411E6FE&1&FA
DeviceInstanceId: IDE\DISKHITACHI_HDS721616PLA380_________________P22OAB3A\5
&4BE38F&0&0.0.0
Drive G: is removeable
Drive G: ( On Windows XP - 32 bit )
-----------------------------------
VendorId: JetFlash
ProductId: Transcend 2GB
ProductRevision: 8.07
DeviceType: 7, DeviceNumber: 1, PartitionNumber: 1
DevicePath: \\?\usbstor#disk&ven_jetflash&prod_transcend_2gb&rev_8.07#e3o29u
13&0#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}
Class: DiskDrive
Hardware ID: USBSTOR\DiskJetFlashTranscend_2GB___8.07
Friendly Name: JetFlash Transcend 2GB USB Device
Physical Device Object Name: \Device\00000080
Device Description: Disk drive
Parent Device Instance ID: USB\VID_058F&PID_6387\E3O29U13
Parent of Parent Device Instance ID: USB\ROOT_HUB20\4&2B6971CE&0
DeviceInstanceId: USBSTOR\DISK&VEN_JETFLASH&PROD_TRANSCEND_2GB&REV_8.07\E3O2
9U13&0
Drive G: is removeable
感谢您的帮助。