|
|
|
|
|
- Summary of the necessary parameters
Hasp (Function) In french: Hasp Interrogates an electronic HASP key (HASP-3, HASP-4, MemoHasp or NetHasp). Hasp is used to protect the applications developed in WINDEV or WEBDEV by Hasp keys. Remarks: - To use Hasp, you must be familiar with the operating mode of Hasp keys and have the relevant documentation.
- Hasp is not available in 64-bit mode. We recommend that you use the HaspHLxxx functions.
NumFonc = 3
Entier1 = 10
Hasp(NumFonc, SeedCode, Lpt, Passe1, Passe2, ...
&Entier1, &Entier2, &Entier3, &Entier4)
IF Entier3 = 0 THEN
Info("Contenu adresse mémoire 10 de la clé>" + Entier2 + "<")
ELSE
Info("Erreur : code retour = " + Entier3)
END
Syntax
Hasp(<FunctionNum> , <SeedC> , <LPT> , <Pass1> , <Pass2> , <Int1> , <Int2> , <Int3> , <Int4>)
<FunctionNum>: Integer Number of the HASP function to run:- 1: Checks Hasp key.
- 2: <SeedC> executes a program in the key that returns 4 different integers for each value entered. This is used to check the presence of key and whether it is not simulated.
- 3: Read the contents of the key.
- 4: Write the contents of the key.
- 5: Returns key content and parallel port information.
- 6: Returns the key identifier.
- 50: Reads a block of data from the key.
- 51: Writes a block of key data.
For functions for reading and writing a fixed string (Ch) in the key: <Ent3> = 0, <Ent4> = &Ch. <SeedC>: Integer Used only if <FunctionNum> = 2. <LPT>: Integer Port number. If <LPT> = 0, Hasp seeks the key on the "proper" parallel port (without having to specify its number). <Pass1>: Integer Parameter supplied by the manufacturer of the key. This parameter guarantees the security of the data stored in the key. <Pass2>: Integer Parameter supplied by the manufacturer of the key. This parameter guarantees the security of the data stored in the key. <Int1>: Integer Values passed by reference (with the & operator). These values can be read in input and/or modified in output. <Int2>: Integer Values passed by reference (with the & operator). These values can be read in input and/or modified in output. <Int3>: Integer Values passed by reference (with the & operator). These values can be read in input and/or modified in output. <Int4>: Integer Values passed by reference (with the & operator). These values can be read in input and/or modified in output. Remarks Summary of the necessary parameters The table below summarizes the necessary parameters according to <FunctionNum> | | | | | | | | | | <FunctionNum> | I/O | SeedC | Lpt | Pass1 | Pass2 | Int1 | Int2 | Int3 | Int4 | 1 | E | | | x | | | | | | 1 | S | | | | | | 0/1 | | | 2 | E | x | x | x | x | | | | | 2 | S | | | | | r1 | r2 | r3 | r4 | 3 | E | | x | x | x | addr | | | | 3 | S | | | | | | Data | Status | | 4 | E | | x | x | x | addr | Data | | | 4 | S | | | | | | | Status | | 5 | E | | x | x | x | | | | | 5 | S | | | | | M/S | Type | Lpt | | 6 | E | | x | x | x | | | | | 6 | S | | | | | Idlow | IdHigh | Status | | 50 | E | | x | x | x | addr | Row | Segm | OffSet | 50 | S | | | | | | | Status | | 51 | E | | x | x | x | addr | Row | Segm | OffSet | 51 | S | | | | | | | Status | |
Legend: - addr: address of a key cell
- M/S: key memory size
- Type: type of key
- Data: data to be read or written
- Lng: length of data to be read from/written to the key
- Segm: 0
- OffSet: &Text where Text is a string containing information to be read or written
- IdLow: to reconstitute the key identifier id = idHigh*65536+idLow
- IdHigh: to reconstitute the key identifier id = idHigh*65536+idLow
- Status: function execution report
- r1...r4: integer containing magic values for a given seed code and key.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|