Method ITcIoCyclic:OutputUpdate
Is called at the end of a task cycle if the interface is logged on to a cyclic I/O caller.
Syntax
virtual HRESULT TCOMAPI OutputUpdate(ITcTask* ipTask, ITcUnknown* ipCaller,
PDWORD pdwStateOut = NULL, ULONG_PTR context = 0)=0;
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 |
|---|---|---|
ipTask | ITcTask | Refers to the current task context. |
ipCaller | ITcUnknown | Refers to the calling instance. |
pdwStateOut | DWORD | [out] reserved for future extensions, currently the return value is ignored. |
context | ULONG_PTR | Context contains the value that was passed to the ITcCyclicCaller::AddIoDriver() method. |
Description
In a task cycle the OutputUpdate() method is called for all registered module instances. Therefore this method must be used for updating the data areas of the type Output-Destination of the module.