(Gast)
n/a Beiträge
|
Re: Partitionstabelle ändern
11. Jul 2009, 14:16
Versuche es mit IOCTL_VOLUME_OFFLINE:
Delphi-Quellcode:
(*BOOL DeviceIoControl(
(HANDLE) hDevice, // handle to device
IOCTL_VOLUME_OFFLINE, // dwIoControlCode
NULL, // lpInBuffer
0, // nInBufferSize
NULL, // lpOutBuffer
0, // nOutBufferSize
(LPDWORD) lpBytesReturned, // number of bytes returned
(LPOVERLAPPED) lpOverlapped); // OVERLAPPED structure
---- *)
if DeviceIOControl(hDevice, IOCTL_VOLUME_OFFLINE, nil, 0, @dg,
sizeof(dg), dummy, nil) = true then
begin...
|
|
Zitat
|