ITAgent::CreateSessionWithPIN method (tapi3.h)
The CreateSessionWithPIN method creates a new agent session for the input ACD group and address, with Personal Identification Number (PIN).
HRESULT CreateSessionWithPIN( [in] ITACDGroup *pACDGroup, [in] ITAddress *pAddress, [in] BSTR pPIN, [out] ITAgentSession **ppAgentSession );
Pointer to ITACDGroup interface.
Pointer to ITAddress interface for object available for receiving ACD calls.
Pointer to a BSTR representation of agent's PIN.
Pointer to session created.
This method can return one of these values.
||Agent not created by CreateAgentWithID.|
||The operation failed because the TAPI 3 DLL timed it out. The timeout interval is two minutes.|
||pPIN is NULL.|
||The pPIN or ppAgentSession parameter is not a valid pointer.|
||Insufficient memory exists to perform the operation.|
TAPI calls the AddRef method on the ITAgentSession interface returned by ITAgent::CreateSessionWithPIN. The application must call Release on the ITAgentSession interface to free resources associated with it.
|Header||tapi3.h (include Tapi3.h)|