![]() |
Handle of NTFS Volume?
Hallo allerseits!
Ich versuche ein Handle auf ein NTFS Volume zu bekommen um weitere DeviceIoControl-Funktionen auszuführen. Jedoch bekomme ich immer ein ungültiges Handle. (GetLastError liefert Fehlercode 6); Kann mir jemand einen Tipp geben? mfG Richard Hier mein Code :
Delphi-Quellcode:
var Test: THandle;
begin test:=CreateFile(pchar('\\.\C:'),GENERIC_READ, FILE_SHARE_READ , nil , OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0); end; |
Re: Handle of NTFS Volume?
Administrator Rechte vorhanden? Musst du vllt. immer READ & WRITE anfragen anstatt nur READ?
|
Re: Handle of NTFS Volume?
Hi Muetze1
Also ich hab jetzt mal FILE_ATTRIBUTE_NORMAL durch 0 ersetzt und bekomme jetzt ein Handle. Aber keine Ahnung ob das so richtig ist. mfG Richard |
Alle Zeitangaben in WEZ +1. Es ist jetzt 03:31 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz