Writes values to one or more items in a group. The function runs to completion.
The values are written to the DEVICE. That is, the function should not return
until it verifies that the device has actually accepted (or rejected) the data.
( IOPCSyncIO::Write )
Syntax
Parameters
- arrHSrv
- The array of server item handles for the items to be read
- arrVal
- List of values to be written to the items. The datatypes
of the values do not need to match the datatypes of the target items.
However an error will be returned if a conversion cannot be done.
null values are not allowed. If any element of the arrVal array is null the call fails
with error E_INVALIDARG.
- arrErr
- If the call is generally successful a HRESULTS error/success
code is returnd for each item. If the call fails with an error code then this array
is undefined.
Return Value
HRESULT success/error code
Requirements
Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2016, .NET 4.x
See Also