ITAgentHandler::CreateAgent method (tapi3cc.h)

The CreateAgent method creates an Agent object.

Syntax

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

Parameters

[out] ppAgent

Pointer to the ITAgent interface.

Return value

This method can return one of these values.

Value Meaning
S_OK
Method succeeded.
E_OUTOFMEMORY
Insufficient memory exists to perform the operation.
E_POINTER
The ppAgent parameter is not a valid pointer.
TAPI_E_TIMEOUT
The operation failed because the TAPI 3 DLL timed it out. The timeout interval is two minutes.

Remarks

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

Requirements

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

See also

CreateAgentWithID

ITAgent

ITAgentHandler