Write

Writes a value to a variable in an ADS device as a byte stream.

HRESULT Write(indexGroup, indexOffset, cbLen, pData);

Parameter

indexGroup

[in] Variable of type long containing the index group of the variable to be written to.

indexOffset

[in] Variable of type long containing the index offset of the variable to be written to.

cbLen

[in] Number of bytes to be written to the variable.

pData

[in, size_is(cbLen)] Pointer to the first element of a byte array with length cbLen of the data to be written to a variable in an ADS device.

Return values

S_OK

The function was called successfully.

ADSERRORCODES

An error occurs.

Comments