ITcModuleManager::SetOnlineModulePara
Writes to the target system using AdsSyncWriteReq(). VT_VARIANT|VT_BYREF is being unpacked. SAFEARRAY values are written as a contiguous buffer based on their dimensions and element size. Scalar VARIANT types are stored in 1, 2, or 4 bytes, depending on the base type.
Signature
HRESULT SetOnlineModulePara(ULONG oid, ULONG pid, VARIANT vData);
Parameter
Name | Type | Description |
|---|---|---|
oid | ULONG | [in] ADS IndexGroup or object ID of the target module. |
pid | ULONG | [in] ADS index offset or parameter ID. |
vData | VARIANT | [in] Data to be written as a |
Return value
Name | Type | Description |
|---|---|---|
(HRESULT) | HRESULT |
|
Error codes
ADS_E_INVALIDDATA: TheVARIANTtype is not supported.- ADS error code: ADS write access to the target system failed.