Forum: Win32/Win64 API (native code)
Delphi
by Fridolin Walther,
11. Jul 2009
Nicht nur das. Du unlockst das Laufwerk auch nie. Ok, das ist laut Dokumentation auch nicht explizit notwendig, da das Lock aufgehoben wird beim CloseHandle.
Forum: Win32/Win64 API (native code)
Delphi
by Fridolin Walther,
11. Jul 2009
Also wenn ich mir Deinen Code ansehe und vergleiche mit der dort genannten Vorgehensweise, muss ich Dir widersprechen das Du die dort genannte Vorgehensweise implementierst. Die sieht nämlich vor:
1. CreateFile
2. FSCTL_LOCK_VOLUME
3. FSCTL_DISMOUNT_VOLUME
4. IOCTL_STORAGE_MEDIA_REMOVAL mit PREVENT_MEDIA_REMOVAL = FALSE
5. IOCTL_STORAGE_EJECT_MEDIA (sofern bei dem Datenträgertyp möglich)...
Forum: Win32/Win64 API (native code)
Delphi
by Fridolin Walther,
11. Jul 2009
Hast Du http://support.microsoft.com/kb/165721 schon mal gelesen?