Registriert seit: 21. Apr 2004
Ort: Tuningen
367 Beiträge
Delphi XE2 Enterprise
|
Re: Problem beim auslesen der Festplatten Seriennummer
26. Okt 2006, 19:32
ok.. hier der rest...
Delphi-Quellcode:
uses
Windows;
const
Method_Buffered = 0;
File_Any_Access = 0;
File_Device_Mass_Storage = $0000002D;
IOCTL_Storage_Base = File_Device_Mass_Storage;
MAX_IDE_DRIVES = 16;
type
PSTORAGE_BUS_TYPE = ^STORAGE_BUS_TYPE;
STORAGE_BUS_TYPE = (BusTypeUnknown = $00, BusTypeScsi, BusTypeAtapi, BusTypeAta, BusType1394, BusTypeSsa, BusTypeFibre, BusTypeUsb, BusTypeRAID, BusTypeMaxReserved = $7F);
PSTORAGE_QUERY_TYPE = ^STORAGE_QUERY_TYPE;
STORAGE_QUERY_TYPE = (PropertyStandardQuery = 0, PropertyExistsQuery, PropertyMaskQuery, PropertyQueryMaxDefined);
PSTORAGE_PROPERTY_ID = ^STORAGE_PROPERTY_ID;
STORAGE_PROPERTY_ID = (StorageDeviceProperty = 0, StorageAdapterProperty);
PSTORAGE_PROPERTY_QUERY = ^STORAGE_PROPERTY_QUERY;
STORAGE_PROPERTY_QUERY = record
PropertyId: STORAGE_PROPERTY_ID;
QueryType: STORAGE_QUERY_TYPE;
AdditionalParameters: array[0..0] of UCHAR;
end;
PSTORAGE_DEVICE_DESCRIPTOR = ^STORAGE_DEVICE_DESCRIPTOR;
STORAGE_DEVICE_DESCRIPTOR = record
Version: ULONG;
Size: ULONG;
DeviceType: UCHAR;
DeviceTypeModifier: UCHAR;
RemovableMedia: Boolean;
CommandQueueing: Boolean;
VendorIdOffset: ULONG;
ProductIdOffset: ULONG;
ProductRevisionOffset: ULONG;
SerialNumberOffset: ULONG;
BusType: STORAGE_BUS_TYPE;
RawPropertiesLength: ULONG;
RawDeviceProperties: array[0..0] of UCHAR;
end;
|
|
Zitat
|