我是 Pinvoke 的新手。当我可以访问目录时,我想在找到 root 后获得 mft。我想使用DeviceIoControl
如下代码:
BOOL DeviceIoControl(
(HANDLE) hDevice, // handle to device
FSCTL_GET_NTFS_VOLUME_DATA, // dwIoControlCode
NULL, // lpInBuffer
0, // nInBufferSize
(LPVOID) lpOutBuffer, // output buffer
(DWORD) nOutBufferSize, // size of output buffer
(LPDWORD) lpBytesReturned, // number of bytes returned
(LPOVERLAPPED) lpOverlapped // OVERLAPPED structure
);
我不知道FSCTL_GET_NTFS_VOLUME_DATA
.