Hi,
Ich benutze grade die
WMI-
Unit von
himitsu
Folgendes versuche ich jetzt zu übersetzen:
Zitat:
Set wmiLogicalDisks = wmiServices.ExecQuery _
("ASSOCIATORS OF {Win32_DiskPartition.DeviceID='" _
& wmiDiskPartition.DeviceID & "'} WHERE AssocClass = Win32_LogicalDiskToPartition")
wobei
wmiDiskPartition.DeviceID = '\\.\PHYSICALDRIVE0'
Mein Code:
Delphi-Quellcode:
// WMIRead(x,0,1) = \\.\PHYSICALDRIVE0
WMIGetInfo('.','root\CIMV2','','','ASSOCIATORS OF {Win32_DiskDrive.DeviceID='''
+ WMIRead(x,0,1) + '''} WHERE AssocClass = Win32_DiskDriveToDiskPartition',Info);
Aber Info ist immer nil... Was is denn da falsch? den Code oben hab ich von Microsoft...
Gruß
Neutral General
Michael
"Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."