CLlmClient::DeleteSession Method  
 
BOOL DeleteSession();

The DeleteSession method releases an LLM_SESSION structure previously allocated by CreateSession.

Parameters

None.

Return Value

If the method succeeds, the return value is non-zero. If the method fails, the return value is zero. To get extended error information, call GetLastError.

Remarks

The DeleteSession method releases the memory allocated for an LLM_SESSION structure created by CreateSession.

After a session structure has been used with ConnectEx, it may be deleted immediately. The library makes an internal copy of the session configuration when the client session is created, so the original structure does not need to remain allocated for the lifetime of the client handle.

This method does not disconnect an active client session. To close a connection created by Connect or ConnectEx, call Disconnect.

Requirements

Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: csllmv12.lib
Unicode: Implemented as Unicode and ANSI versions

See Also