WupiWriteData
WupiWriteData writes raw data to the CodeMeter / WibuKey device that was previously prepared for writing. This function can be used in all programming languages that can work with pointers; in other languages you can use WupiWriteDataInteger instead.
How to define the data is described briefly in the knowledge base article Read and Write data.
Syntax |
|---|
int WupiWriteData(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 written. •cbData contains the number of bytes of pvData. |
Return |
This function returns FALSE (0), if an error occurs, otherwise TRUE (1). |
Syntax |
|---|
public static int WriteData(int LicenseList, int Offset, byte[] Data) |
Parameters |
•LicenseList refers to the license list index. •Offset contains the offset of bytes from the start of the data area. •Data contains the data array to be written. |
Return |
This function returns false, if an error occurs, otherwise true. |
WriteDataPartial
Syntax |
|---|
public static int WriteDataPartial(int LicenseList, int Offset, byte[] Data, int Start, int Length) |
Parameters |
•LicenseList refers to the license list index. •Offset contains the offset of bytes from the start of the data area. •Data contains the data array to be written. •Length contains the number of bytes to be written. •Start defines the start index of the data to be written. |
Return |
This function returns false, if an error occurs, otherwise true. |