ntfs下有efs加密系统,可直接调用api,EncryptFile DefinitionBOOL WINAPI EncryptFile ( LPCWSTR lpFilename)Parameters lpFilenamePath to the file or directory to encrypt. Return ValuesIf the function succeeds, the return value is nonzero.If the function fails, the return value is zero. For extended error information, call GetLastError().ReferenceFor more information and example source code, please see the EncryptFile entry in the Microsoft Developer Network.DecryptFile DefinitionBOOL WINAPI DecryptFile ( LPCWSTR lpFilename, DWORD dwReserved)Parameters lpFilenamePath to the file or directory to decrypt. dwReservedReserved for future use and must be zero. Return ValuesIf the function succeeds, the return value is nonzero.If the function fails, the return value is zero. For extended error information, call GetLastError().
DefinitionBOOL WINAPI EncryptFile (
LPCWSTR lpFilename)Parameters lpFilenamePath to the file or directory to encrypt.
Return ValuesIf the function succeeds, the return value is nonzero.If the function fails, the return value is zero. For extended error information, call GetLastError().ReferenceFor more information and example source code, please see the EncryptFile entry in the Microsoft Developer Network.DecryptFile
DefinitionBOOL WINAPI DecryptFile (
LPCWSTR lpFilename,
DWORD dwReserved)Parameters lpFilenamePath to the file or directory to decrypt.
dwReservedReserved for future use and must be zero.
Return ValuesIf the function succeeds, the return value is nonzero.If the function fails, the return value is zero. For extended error information, call GetLastError().