PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
HaspHLWrite (Function)
In French: HaspHLEcrit
Writes data (character strings or buffers) into the internal memory of the Hasp key.
Example
// 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:
    haspLicenseFileWrites into the "license area" file of the key.
    haspMainFileWrites 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 (with quotes) 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.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230rtf.dll
Minimum required version
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment