Hersteller+ (Hersteller-)Bezeichnung eines Laufwerks auslesen ?
-
Hi könnt ihr mir sagen wir ich das (siehe Titel) machen kann ?
Besten Dank

-
http://msdn.microsoft.com/library/en-us/wmisdk/wmi/computer_system_hardware_classes.asp
http://www.c-plusplus.net/forum/viewtopic-var-t-is-56461.html
-
Noch 2 Fragen:
1. Gibt es keine andere Möglichkeit außer die (rlativ komplexe) WMI.
2. Brauch diese Methode exklusiven Zugriff auf das Laufwerk (oder kann es bereits lesend 'benutzt werden') ?
-
Die einfachste geht über WMI...
Un Du braucht dazu gar kein Zugriffsrecht auf die Festplatte.
Bei mir liefert z.B. die Klasse "Win32_DiskDrive" folgendes
(mittels meinem WMI_Query:
http://blog.kalmbachnet.de/?postid=29
):BytesPerSector: 512 Capabilities: System.UInt16[]: 3 4 Caption: ST380020A ConfigManagerErrorCode: 0 ConfigManagerUserConfig: False CreationClassName: Win32_DiskDrive Description: Laufwerk DeviceID: \\.\PHYSICALDRIVE0 Index: 0 InterfaceType: IDE Manufacturer: (Standardlaufwerke) MediaLoaded: True MediaType: Fixed hard disk media Model: ST380020A Name: \\.\PHYSICALDRIVE0 Partitions: 1 PNPDeviceID: IDE\DISKST380020A_______________________________3.39____\47354D4336365034202020202020202020202020 SCSIBus: 0 SCSILogicalUnit: 0 SCSIPort: 0 SCSITargetId: 0 SectorsPerTrack: 63 Signature: 965360009 Size: 80023749120 Status: OK SystemCreationClassName: Win32_ComputerSystem SystemName: PIV3200 TotalCylinders: 9729 TotalHeads: 255 TotalSectors: 156296385 TotalTracks: 2480895 TracksPerCylinder: 255 ---------------------------- BytesPerSector: 512 Capabilities: System.UInt16[]: 3 4 Caption: Promise 1X2 Mirror/RAID1 SCSI Disk Device ConfigManagerErrorCode: 0 ConfigManagerUserConfig: False CreationClassName: Win32_DiskDrive Description: Laufwerk DeviceID: \\.\PHYSICALDRIVE1 Index: 1 InterfaceType: SCSI Manufacturer: (Standardlaufwerke) MediaLoaded: True MediaType: Fixed hard disk media Model: Promise 1X2 Mirror/RAID1 SCSI Disk Device Name: \\.\PHYSICALDRIVE1 Partitions: 1 PNPDeviceID: SCSI\DISK&VEN_PROMISE&PROD_1X2_MIRROR/RAID1&REV_1.10\5&1BE20AE9&0&000 SCSIBus: 0 SCSILogicalUnit: 0 SCSIPort: 2 SCSITargetId: 0 SectorsPerTrack: 63 Signature: 2647223966 Size: 118995125760 Status: OK SystemCreationClassName: Win32_ComputerSystem SystemName: PIV3200 TotalCylinders: 14467 TotalHeads: 255 TotalSectors: 232412355 TotalTracks: 3689085 TracksPerCylinder: 255