Location: Symbol Reference > Functions > JwLoadHashFromRegistry Function
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
JwLoadHashFromRegistry Function
Pascal
function JwLoadHashFromRegistry(const Hive: Cardinal; const Key: String; const HashName: String; const SizeName: String): TJwFileHashData;
Parameters 
Description 
const Hive: Cardinal 
Defines a registry hive like HKEY_LOCAL_MACHINE.  
const Key: String 
Defines a registry path to a key like "SoftwareJEDI".  
const HashName: String 
Defines the registry value name that receives the hash data.  
const SizeName: String 
Defines the registry value name that receives the size of hash data.  

The return value is a record that holds the hash data. The returned pointer member "hash" in TJwFileHashData must be freed by TJwHash.FreeBuffer (unit JwsclCryptProvider.pas). 

raise ERegistryException If the given key was not found. Exception This procedure may raise exception coming from TRegistry methods.

JwLoadHashFromRegistry loads a hash record (TJwFileHashData) to registry previously saved by JwSaveHashToRegistry

 

The procedure has some characteristics :

  • It does not check for a correct hash value. However the key type of "HashName" must be binary though.
  • It only returns a valid structure if the value from key "SizeName" is between 1 than 1023 bytes (1 <= SizeName <= 1023)

Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc.
What do you think about this topic? Send feedback!