|
|
|
|
- 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.
// Test for reading the cell 10 of key: // the numbering starts from 0 FuncNum = 3 // READ_WORD function Int1 = 10 Hasp(FuncNum, SeedCode, Lpt, Pass1, Pass2, ... &Int1, &Int2, &Int3, &Int4) IF Int3 = 0 THEN Info("Content address memory 10 of key>" + Int2 + "<") ELSE Info("Error: return code = " + Int3) END
Syntax
Hasp(<FunctionNum> , <SeedC> , <LPT> , <Pass1> , <Pass2> , <Int1> , <Int2> , <Int3> , <Int4>)
<FunctionNum>: Integer Number of the HASP function to run:- 1: Checks the HASP key.
- 2: <SeedC> is used to run a program in the key that will return 4 different integers for each value passed. This is used to check the presence of key and whether it is not simulated.
- 3: Read the key content.
- 4: Write the key content.
- 5: Returns the key content and information about the parallel port.
- 6: Returns the key identifier.
- 50: Reads a block of data in the key.
- 51: Writes a data block in the key.
For the functions used to read and write a fixed string (Str) in the key: <Int3> = 0, <Int4> = &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: memory size of the key
- Type: type of key
- Data: data to read or write
- Row: length of the data to read/write in the key
- Segm: 0
- OffSet: &Text where Text is a string containing the information to read or write
- Idlow: to rebuild the identifier of the key id = idHigh**65536+idLow
- IdHigh: to rebuild the identifier of the key id = idHigh**65536+idLow
- Status: status report of the function execution
- r1...r4: integer containing the magic values according to a given Seed code and key.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|