Windows.pasfunction DeviceIoControl(hDevice: THandle; dwIoControlCode: DWORD; lpInBuffer: Pointer; nInBufferSize: DWORD; lpOutBuffer: Pointer; nOutBufferSize: DWORD; var lpBytesReturned: DWORD; lpOverlapped: POverlapped): BOOL; stdcall;详细说明,参考MSDN部分Device I/O Control CodesValue Meaning FSCTL_GET_COMPRESSION Obtains the compression state of a file or directory FSCTL_SET_COMPRESSION Sets the compression state of a file or directory. 以上纯属个人见解,仅供参考。如果有错,不要扁我
nInBufferSize: DWORD; lpOutBuffer: Pointer; nOutBufferSize: DWORD;
var lpBytesReturned: DWORD; lpOverlapped: POverlapped): BOOL; stdcall;详细说明,参考MSDN部分Device I/O Control CodesValue Meaning
FSCTL_GET_COMPRESSION Obtains the compression state of a file or directory
FSCTL_SET_COMPRESSION Sets the compression state of a file or directory.
以上纯属个人见解,仅供参考。如果有错,不要扁我