Re: How to Disable Compress and Encrypt a existing file provided by NTFS?

Be sure to check what the compression state is changed TO - before
disabling it. Maybe the user wants to decompress it.
For encryption - I haven’t seen any use for disabling it. If you want
to encrypt files with your own filter, EFS does not interfere with it.

Regards, Dejan.

“Lyndon J. Clarke” wrote:

Okay for compression, I guess you can try to fail all
IRP_MJ_FILE_SYSTEM_CONTROL, the DeviceIoControl.IoControlCode is
FSCTL_SET_COMPRESSION, or at least fail those from your user. It’ll be
interesting to see the responses for encryption!


Kind regards, Dejan M. MVP for DDK
http://www.alfasp.com E-mail: xxxxx@alfasp.com
Alfa Transparent File Encryptor - Transparent file encryption services.
Alfa File Protector - File protection and hiding library for Win32
developers.
Alfa File Monitor - File monitoring library for Win32 developers.