WupiReadDataInteger
WupiReadDataInteger returns raw data from the CodeMeter / WibuKey device that was previously stored at a defined place. This variant reads the data in two byte pieces. If the used programming language has the possibility to use pointers we recommend to use WupiReadData instead.
How to define the data is described briefly in the knowledge base article Read and Write data.
Syntax |
|---|
int WupiReadDataInteger(int iLicenseList, int iOffset); |
Parameters |
•iLicenseList refers to the license list index. •iOffset contains the offset of bytes from the start of the data area. |
Return |
The 4 byte return value is split in 2 upper bytes for error and message handling and 2 lower bytes which contain the data. The upper 2 bytes for error and message handling may have the following values: #define WupiRDError (0x80000000) #define WupiRDMoreDataAvail (0x40000000) |
Syntax |
|---|
public static uint ReadDataInteger(int LicenseList, int Offset) |
Parameters |
•LicenseList refers to the license list index. •Offset contains the offset of bytes from the start of the data area. |
Return |
The 4 byte return value is split in 2 upper bytes for error and message handling and 2 lower bytes which contain the data. The upper 2 bytes for error and message handling may have the following values: Errors.ReadDataError (0x80000000) Errors.ReadDataMoreDataAvailable (0x40000000) |