EldoS
 Table of Contents >  SolFSStorage.GetFileEncryption method
Navigation
Web site
Support
Table Of Contents
Send comments on this topic

SolFSStorage.GetFileEncryption method

Filter:

Pascal    DLL    C++ (DLL/Lib)    C++ (VCL)    C++ (.NET)    C#    VB.NET   

SolFSStorage     See also    

Overview

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.
  • [DLL] Storage - handle to the storage returned by Create or Open function.
  • [DLL] Encryption - returns file encryption mode.

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.

See also

SetFileEncryption

Contact Us | Subscribe | Terms of Use | Trademarks | Privacy Statement
Copyright (c) 1998-2008, EldoS Corporation