ITcComObject:TcSetObjState method
The TcSetObjState method initializes a transition to the given state.
Syntax
HRESULT TcSetObjState(TCOM_STATE state, ITComObjectServer* ipSrv, PTComInitDataHdr pInitData);
Return value
If successful, S_OK ("0") or another positive value will be returned, cf. Return values. Extended messages refer in particular to the column HRESULT in ADS Return Codes.
Parameter
Name | Type | Description |
|---|---|---|
state | TCOM_STATE | Displays the new state. |
ipSrv | ITComObjectServer* | ObjServer that handles the object. |
pInitData | PTComInitDataHdr | Points to a list of parameters (optional); see the IMPLEMENT_ITCOMOBJECT_EVALUATE_INITDATA macro as an example of how the list can be iterated. |