Ok danke aber was heißt das hier:
Delphi-Quellcode:
_PARTITION_INFORMATION_EX = record
PartitionStyle: PARTITION_STYLE;
StartingOffset: LARGE_INTEGER;
PartitionLength: LARGE_INTEGER;
PartitionNumber: ULONG;
RewritePartition: Boolean;
case Integer of
0: (Mbr: PARTITION_INFORMATION_MBR);
1: (Gpt: PARTITION_INFORMATION_GPT);
end;
Und wie soll ich die markierte Zeile in diesem Record übersetzen ? o.O
Code:
typedef struct _DRIVE_LAYOUT_INFORMATION_EX {
ULONG PartitionStyle;
ULONG PartitionCount;
union {
DRIVE_LAYOUT_INFORMATION_MBR Mbr;
DRIVE_LAYOUT_INFORMATION_GPT Gpt;
};
PARTITION_INFORMATION_EX PartitionEntry[1]; //<---- Was soll die [1] ?
}
PS: Man man Michi -.- Erst gucken dann schreiben...
PartitionEntry: array [0..0] of PARTITION_INFORMATION_EX;
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."