ITAgentEvent::get_Agent method (tapi3cc.h)

The get_Agent method gets the interface for the agent on which the event occurred.

Syntax

HRESULT get_Agent(
  [out] ITAgent **ppAgent
);

Parameters

[out] ppAgent

Pointer to ITAgent interface.

Return value

This method can return one of these values.

Value Meaning
S_OK
Method succeeded.
E_POINTER
The ppAgent parameter is not a valid pointer.
E_OUTOFMEMORY
Insufficient memory exists to perform the operation.

Remarks

TAPI calls the AddRef method on the ITAgent interface returned by ITAgentEvent::get_Agent. The application must call Release on the ITAgent interface to free resources associated with it.

Requirements

Requirement Value
Target Platform Windows
Header tapi3cc.h (include Tapi3.h)
Library Uuid.lib
DLL Tapi3.dll

See also

ITAgent

ITAgentEvent