ITcModuleInstance::SetModulePara
VT_VARIANT | VT_BYREF, byte SAFEARRAYs, and scalar VARIANT values are accepted. Interface pointer parameters set object IDs; data pointer parameters check the exact byte size; module parameters check type size, array dimensions, and flexible arrays. If successful, the Tree Item is marked as modified.
Signature
HRESULT SetModulePara(ULONG pid, VARIANT vData);
Parameter
Name | Type | Description |
|---|---|---|
pid | ULONG | [in] Parameter ID. |
vData | VARIANT | [in] New parameter value. |
Return value
Name | Type | Description |
|---|---|---|
(HRESULT) | HRESULT |
|
Error codes
-
TSM_E_ITEMDELETED: The referenced Tree Item is no longer valid. -
E_INVALIDARG: The parameter ID, variant type, or value format does not match a supported parameter. -
ADS_E_INVALIDSIZE: The array/byte size does not match the expected parameter size. -
E_NOTIMPL: Writing is not supported for this element type.