title: Get information about disk drives result on windows7 - 32 bit system
body: <p>When i run the below code on windows XP - 32 , i get the below result.</p>
  
  <p>i have plugged only one usb pen drive</p>
  
  <pre><code>On Windows XP - 32 Bit
  -----------------------
  
  Drive C:
      ProductId: ST3160215AS
      ProductRevision: 3.AAD
      DeviceType: 7, DeviceNumber: 0, PartitionNumber: 1
      DevicePath: \\?\ide#diskst3160215as_____________________________3.aad___#5&amp;2
  7db0ed4&amp;0&amp;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&amp;1C1E8A11&amp;0&amp;0
      Parent of Parent Device Instance ID: PCI\VEN_8086&amp;DEV_27C0&amp;SUBSYS_72671462&amp;R
  EV_01\3&amp;11583659&amp;0&amp;FA
      DeviceInstanceId: IDE\DISKST3160215AS_____________________________3.AAD___\5
  &amp;27DB0ED4&amp;0&amp;0.0.0
  Drive D:
      ProductId: ST3160215AS
      ProductRevision: 3.AAD
      DeviceType: 7, DeviceNumber: 0, PartitionNumber: 2
      DevicePath: \\?\ide#diskst3160215as_____________________________3.aad___#5&amp;2
  7db0ed4&amp;0&amp;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&amp;1C1E8A11&amp;0&amp;0
      Parent of Parent Device Instance ID: PCI\VEN_8086&amp;DEV_27C0&amp;SUBSYS_72671462&amp;R
  EV_01\3&amp;11583659&amp;0&amp;FA
      DeviceInstanceId: IDE\DISKST3160215AS_____________________________3.AAD___\5
  &amp;27DB0ED4&amp;0&amp;0.0.0
  Drive E:
      ProductId: ST3160215AS
      ProductRevision: 3.AAD
      DeviceType: 7, DeviceNumber: 0, PartitionNumber: 3
      DevicePath: \\?\ide#diskst3160215as_____________________________3.aad___#5&amp;2
  7db0ed4&amp;0&amp;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&amp;1C1E8A11&amp;0&amp;0
      Parent of Parent Device Instance ID: PCI\VEN_8086&amp;DEV_27C0&amp;SUBSYS_72671462&amp;R
  EV_01\3&amp;11583659&amp;0&amp;FA
      DeviceInstanceId: IDE\DISKST3160215AS_____________________________3.AAD___\5
  &amp;27DB0ED4&amp;0&amp;0.0.0
  Drive F:
      ProductId: ST3160215AS
      ProductRevision: 3.AAD
      DeviceType: 7, DeviceNumber: 0, PartitionNumber: 4
      DevicePath: \\?\ide#diskst3160215as_____________________________3.aad___#5&amp;2
  7db0ed4&amp;0&amp;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&amp;1C1E8A11&amp;0&amp;0
      Parent of Parent Device Instance ID: PCI\VEN_8086&amp;DEV_27C0&amp;SUBSYS_72671462&amp;R
  EV_01\3&amp;11583659&amp;0&amp;FA
      DeviceInstanceId: IDE\DISKST3160215AS_____________________________3.AAD___\5
  &amp;27DB0ED4&amp;0&amp;0.0.0
  Drive G:
      VendorId: JetFlash
      ProductId: Transcend 2GB
      ProductRevision: 8.07
      DeviceType: 7, DeviceNumber: 1, PartitionNumber: 1
      DevicePath: \\?\usbstor#disk&amp;ven_jetflash&amp;prod_transcend_2gb&amp;rev_8.07#e3o29u
  13&amp;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&amp;PID_6387\E3O29U13
      Parent of Parent Device Instance ID: USB\ROOT_HUB20\4&amp;2B6971CE&amp;0
      DeviceInstanceId: USBSTOR\DISK&amp;VEN_JETFLASH&amp;PROD_TRANSCEND_2GB&amp;REV_8.07\E3O2
  9U13&amp;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&amp;4
  be38f&amp;0&amp;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&amp;PID_6387\E3O29U13
      Parent of Parent Device Instance ID: USB\ROOT_HUB20\4&amp;4E31217&amp;0
      DeviceInstanceId: USBSTOR\DISK&amp;VEN_JETFLASH&amp;PROD_TRANSCEND_2GB&amp;REV_8.07\E3O2
  9U13&amp;0
      Drive C: is removeable
  Drive D:
      ProductId: Hitachi HDS721616PLA380
      ProductRevision: P22OAB3A
      DeviceType: 7, DeviceNumber: 0, PartitionNumber: 3
      DevicePath: \\?\ide#diskhitachi_hds721616pla380_________________p22oab3a#5&amp;4
  be38f&amp;0&amp;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&amp;PID_6387\E3O29U13
      Parent of Parent Device Instance ID: USB\ROOT_HUB20\4&amp;4E31217&amp;0
      DeviceInstanceId: USBSTOR\DISK&amp;VEN_JETFLASH&amp;PROD_TRANSCEND_2GB&amp;REV_8.07\E3O2
  9U13&amp;0
      Drive D: is removeable
  Drive E:
      ProductId: Hitachi HDS721616PLA380
      ProductRevision: P22OAB3A
      DeviceType: 7, DeviceNumber: 0, PartitionNumber: 4
      DevicePath: \\?\ide#diskhitachi_hds721616pla380_________________p22oab3a#5&amp;4
  be38f&amp;0&amp;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&amp;PID_6387\E3O29U13
      Parent of Parent Device Instance ID: USB\ROOT_HUB20\4&amp;4E31217&amp;0
      DeviceInstanceId: USBSTOR\DISK&amp;VEN_JETFLASH&amp;PROD_TRANSCEND_2GB&amp;REV_8.07\E3O2
  9U13&amp;0
      Drive E: is removeable
  Drive F:
      ProductId: Hitachi HDS721616PLA380
      ProductRevision: P22OAB3A
      DeviceType: 7, DeviceNumber: 0, PartitionNumber: 5
      DevicePath: \\?\ide#diskhitachi_hds721616pla380_________________p22oab3a#5&amp;4
  be38f&amp;0&amp;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&amp;PID_6387\E3O29U13
      Parent of Parent Device Instance ID: USB\ROOT_HUB20\4&amp;4E31217&amp;0
      DeviceInstanceId: USBSTOR\DISK&amp;VEN_JETFLASH&amp;PROD_TRANSCEND_2GB&amp;REV_8.07\E3O2
  9U13&amp;0
      Drive F: is removeable
  Drive G:
      VendorId: JetFlash
      ProductId: Transcend 2GB
      ProductRevision: 8.07
      DeviceType: 7, DeviceNumber: 1, PartitionNumber: 1
      DevicePath: \\?\usbstor#disk&amp;ven_jetflash&amp;prod_transcend_2gb&amp;rev_8.07#e3o29u
  13&amp;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&amp;35CD87E&amp;0&amp;0
      Parent of Parent Device Instance ID: PCI\VEN_8086&amp;DEV_27C0&amp;SUBSYS_27C08086&amp;R
  EV_01\3&amp;2411E6FE&amp;1&amp;FA
      DeviceInstanceId: IDE\DISKHITACHI_HDS721616PLA380_________________P22OAB3A\5
  &amp;4BE38F&amp;0&amp;0.0.0
      Drive G: is removeable
  Drive Z:
  </code></pre>
  
  <blockquote>
    <p>Blockquote</p>
  </blockquote>
  
  <pre><code>---------------------------------------------------------------------------------
  </code></pre>
  
  <p>Kindly look at the both the results...</p>
  
  <p>I have plugged a same usb device on both the systems ( xp and windows7 ) but the results varies...</p>
  
  <p>please check the Drive G: results on the both the Os...</p>
  
  <pre><code>Drive G: ( On Windows 7 - 32 bit )
  -----------------------------------
  
  VendorId: JetFlash
      ProductId: Transcend 2GB
      ProductRevision: 8.07
      DeviceType: 7, DeviceNumber: 1, PartitionNumber: 1
      DevicePath: \\?\usbstor#disk&amp;ven_jetflash&amp;prod_transcend_2gb&amp;rev_8.07#e3o29u
  13&amp;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&amp;35CD87E&amp;0&amp;0
      Parent of Parent Device Instance ID: PCI\VEN_8086&amp;DEV_27C0&amp;SUBSYS_27C08086&amp;R
  EV_01\3&amp;2411E6FE&amp;1&amp;FA
      DeviceInstanceId: IDE\DISKHITACHI_HDS721616PLA380_________________P22OAB3A\5
  &amp;4BE38F&amp;0&amp;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&amp;ven_jetflash&amp;prod_transcend_2gb&amp;rev_8.07#e3o29u
  13&amp;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&amp;PID_6387\E3O29U13
      Parent of Parent Device Instance ID: USB\ROOT_HUB20\4&amp;2B6971CE&amp;0
      DeviceInstanceId: USBSTOR\DISK&amp;VEN_JETFLASH&amp;PROD_TRANSCEND_2GB&amp;REV_8.07\E3O2
  9U13&amp;0
      Drive G: is removeable
  </code></pre>
  
  <p>Thank you for any help</p>