logo_wupi_64x64px WupiReadData

WupiReadData reads raw data from the CodeMeter / WibuKey device that was previously stored at a defined place. This function can be used in all programming languages that can work with pointers; in other languages you can use WupiReadDataInteger instead.

How to define the data is described briefly in the knowledge base article Read and Write data.

  • C, C++
  • C#

Syntax

int WupiReadData(int iLicenseList, int iOffset, void* pvData, unsigned int cbData);

Parameters

•iLicenseList refers to the license list index.

•iOffset contains the offset of bytes from the start of the data area.

•pvData contains the data array to be filled.

•cbData contains the number of bytes of pvData.

Return

This function returns the number of stored bytes in pvData. If the return value is 0, call WupiGetLastError for detailed information.

Syntax

public static bool ReadData(int LicenseList, int Offset, int DataLen, out byte[] Data)

Parameters

•LicenseList refers to the license list index.

•Offset contains the offset of bytes from the start of the data area.

•Data receives the data

•DataLen contains the number of bytes.

Return

This function returns true, if the Data has been read. If the return value is false, call WupiGetLastError for detailed information.