Solid File System

Virtual file system enigne that can be embedded into your software.

SolFSStorage.CheckPassword method

Filter:

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

SolFSStorage     See also    

Overview

Checks if the password for the storage is correct.

Declaration

[Pascal]
    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);

[C#]
    bool CheckPassword(String password);

[VB.NET]
    Function CheckPassword(ByVal password As String) As Boolean

[Java]
    void checkPassword(String password);

Parameters

  • 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

Description

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

See also

StorageEncryption     StoragePassword     SetEncryption    

Back to top