ITcModuleInstance2::GetModuleContext

Searches for the context ID in the module and returns the currently stored target object ID. Additional context data, such as the ADS port, priority, or cycle time, is not exposed via this API.

Signature

HRESULT GetModuleContext(UINT index, ULONG* pOid);

Parameter

Name

Type

Description

index

UINT

[in] Context ID.

Return value

Name

Type

Description

pOid

ULONG*

[out] Object ID of the set context.

(HRESULT)

HRESULT

S_OK if successful, otherwise an error code.

Error codes