CImapClient::GetIdleThreadId Method  
 
DWORD GetIdleThreadId();

The GetIdleThreadId method returns ID of the thread that is monitoring the client session.

Parameters

None.

Return Value

If the method succeeds, it returns the ID of the thread that is checking for update notifications from the server. If there is no active thread monitoring the client session, the method will return zero.

Remarks

The worker thread that monitors the client connection in the background can terminate if an IMAP command is sent to the server, if the Cancel method is called or if the client disconnects from the server. The GetIdleThreadId method enables the application to determine if this background thread is still active or not.

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: csmapv12.lib
Unicode: Implemented as Unicode and ANSI versions

See Also