Forum: Win32/Win64 API (native code)
Delphi
by nicodex,
30. Mai 2008
Deine Definition von TFileBasicInformation ist falsch (es fehlt die implizite Ausrichtung, die Struktur ist nicht packed!)
{$ALIGN 8}
{$MINENUMSIZE 4}
const
NtApiLib = 'ntdll.dll';
type
TNtStatus = type LongInt;
Forum: Win32/Win64 API (native code)
Delphi
by nicodex,
30. Mai 2008
Öhm, ja, schön, aber dein Buffer ist nicht so groß.
Forum: Win32/Win64 API (native code)
Delphi
by nicodex,
30. Mai 2008
Du setzt beim TNtUnicodeString (UNICODE_STRING) nur die Länge der Daten, aber nicht die Maximale Länge.