SolFSStorage.GetFileEncryption method
Filter:
Pascal DLL C++ (DLL/Lib) C++ (VCL) C++ (.NET) C# VB.NETOverview
Rerurns file encryption mode.
Declaration
[Pascal]
function GetFileEncryption(const FileName: WideString): TSolFSEncryption;
[DLL]
long _stdcall StorageGetFileEncryption(unsigned long Storage, const wchar_t* FileName, unsigned long *Encryption);
[C++ (DLL/Lib)]
SolFSEncryption GetFileEncryption(const unsigned short* FileName);
[C++ (VCL)]
TSolFSEncryption __fastcall GetFileEncryption(const WideString FileName);
[C++ (.NET)]
SolFSEncryption GetFileEncryption(String *fileName);
[C#]
SolFSEncryption GetFileEncryption(String fileName);
[VB.NET]
Function GetFileEncryption(ByVal fileName As String) As SolFSEncryption
Parameters
- FileName - the full file name in the SolFSStorage.
Return value
File encryption mode.
[DLL] 0 if the function succeeded or one of Error codes if the function failed.
Values of StorageEncryption
[Pascal] [DLL] [C++ (VCL)] [C++ (.NET)] [C#] [VB.NET] [ActiveX] [VB]
Value
Meaning
ecNoEncryption
0
Encryption is not used.
ecAES256_SHA256
1
AES (256 bit) is used for encryption and SHA is used for hashing.
ecCustom256
2
Custom encryption is used via callback functions (events).
ecAES256_HMAC256
3
AES (256 bit) is used for encryption and SHA is used for hashing. This mode is recommended for use instead of ecAES256_SHA256.
Description
Use GeFileEncryption to determine encryption mode of the file.
