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

S_OK if successful, otherwise an error code.

Error codes