Platform SDK: TAPI

ITAgent::put_State

Sets the state of an agent session.

HRESULT put_State(
  AGENT_STATE AgentState
);

Parameters

AgentState
[in] AGENT_STATE.

Return Values

Value Meaning
S_OK Method succeeded.
E_INVALIDARG Agent session state is incorrect.
E_OUTOFMEMORY Insufficient memory exists to perform the operation.
TAPI_E_TIMEOUT The operation failed because the TAPI 3.0 DLL timed it out. The timeout interval is two minutes.

Remarks

The ITAgent::put_State method is a COM wrapper for the TAPI 2.1 lineSetAgentStateEx function.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Version: Requires TAPI 3.0 or later.
  Header: Declared in Tapi3.h.
  Library: Use T3iid.lib.

See Also

ITAgent, get_State, AGENT_STATE