ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / HASP key functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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 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.
Component: wd290rtf.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help