Method ITcIoCyclic:InputUpdate

Is called at the beginning of a task cycle if the interface is logged on to a cyclic I/O caller.

Syntax

virtual HRESULT TCOMAPI InputUpdate(ITcTask* ipTask, 
ITcUnknown* ipCaller, DWORD dwStateIn, ULONG_PTR context = 0)=0;

Method ITcIoCyclic:InputUpdate 1: 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.

dwStateIn

DWORD

Future extensions reserved; at present this value is always 0.

context

ULONG_PTR

Context contains the value that was passed to the ITcCyclicCaller::AddIoDriver() method.

Description

In a task cycle the InputUpdate() method is first called for all registered module instances. Therefore this method must be used for updating the data areas of the Input-Source type of the module.