|
|
|
|
HaspHLWrite (Function) In french: HaspHLEcrit Writes data (character strings or buffers) into the internal memory of the Hasp key. // Generates an initial activation key InitialKey is string = KeyGenerateInitialKey() Â // Stores the initial activation key in the memory of the Hasp key HaspHLWrite(EDT_Session_ID, haspMainFile, InitialKey)
Syntax
<Result> = HaspHLWrite(<Session identifier> , <File identifier> , <Position> , <String to write>)
<Result>: Boolean - True if the writing was successful,
- False otherwise. ErrorInfo returns the details of the error.
<Session identifier>: Integer Identifier of the Hasp session, returned by HaspHLLogin. <File identifier>: Integer or Integer constant Identifier of the file into which the data must be written. This identifier can correspond to:- an integer.
- one of the following constants:
| | haspLicenseFile | Writes into the "license area" file of the key. | haspMainFile | Writes into the "main memory area" file of the key. |
<Position>: Integer Position (in bytes) where the data will be written into the file.Caution: The beginning of the file starts from position 0. <String to write>: Character string or Buffer Data that must be written into the file.Caution: The size of the files in the Hasp keys is fixed. The function will fail if the size of data to write exceeds the available size in the file.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|