Method ITcPostCyclicCaller:RemovePostModule

Remove a module instance from being called by a cyclic caller.

Syntax

virtual HRESULT TCOMAPI
RemovePostModule(STcPostCyclicEntry* pEntry)=0;

Method ITcPostCyclicCaller:RemovePostModule 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.

The method returns E_FAIL if the entry is not in the internal list.

Parameter

Name

Type

Description

pEntry

STcPostCyclicEntry

Refers to the list item to be removed from the internal list of the cyclic caller.

Comparable with the AddPostModule() method, the smart pointer is used for the cyclic caller as a list item if the module instance is to be removed from the cyclic caller.

Declaration and use of the Smart Pointer:

ITcPostCyclicCallerInfoPtr m_spPostCyclicCaller;

if (
m_spPostCyclicCaller ) {
m_spPostCyclicCaller->RemovePostModule(m_spPostCyclicCaller);

}

m_spPostCyclicCaller = NULL;