SolFSStorage.CheckPassword method


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

SolFSStorage     See also    


Checks if the password for the storage is correct.


    function CheckPassword(Password: TSolFSString): Boolean;
    type TSolFSString = {$ifdef UNICODE}UnicodeString{$else}WideString{$endif};

[Plain C]
    long _stdcall StorageCheckPassword( unsigned long Storage, wchar_t* Password, unsigned long PasswordLen, char *Valid, unsigned long *ActualEncryption );

[C++ (DLL/Lib)]
    bool CheckPassword(unsigned short *password);

[C++ (VCL)]
    bool __fastcall CheckPassword(TSolFSString Password);

[C++ (.NET)]
bool CheckPassword(String *password);

    bool CheckPassword(String password);

    Function CheckPassword(ByVal password As String) As Boolean

    void checkPassword(String password);


  • Password - password you want to check.
  • [Plain C] Storage - handle to the storage returned by Create or Open function.
  • [Plain C] PasswordLen - length of the Password in bytes (not counting terminating NULL).
  • [Plain C] Valid - returns 1 if password was correct,
    0 if password was incorrect.
  • [Plain C] ActualEncryption - returns encryption type of the storage.

Return value

    True if password was correct.
    False if password was incorrect.

     [Plain C]  0 if the function succeeded or one of Error codes if the function failed.

Values of SolFSEncryption


Use this method to check whether the provided password is valid for current storage.

See also

StorageEncryption     StoragePassword     SetEncryption