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 |
|
Error codes
-
E_INVALIDARG: The context ID does not exist. -
E_NOTIMPL: This specific element type does not support context access.