Is there a library method somewhere for figuring out whether a file has been encrypted with EFS? I see the Encrypt() and Decrypt() methods on FileInfo, but am looking for a way to query a file's state.
How to determine whether a file is encrypted with EFS?
4k views Asked by Matt At
2
Use
GetFileAttributes(), and check forFILE_ATTRIBUTE_ENCRYPTED.