ITfMessagePump interface

The ITfMessagePump interface is implemented by the TSF manager and is used by an application to obtain messages from the application message queue. The methods of this interface are wrappers for the GetMessage and PeekMessage functions. This interface enables the TSF manager to perform any necessary pre-message or post-message processing.

Members

The ITfMessagePump interface inherits from the IUnknown interface. ITfMessagePump also has these types of members:

Methods

The ITfMessagePump interface has these methods.

MethodDescription
GetMessageA

Obtains a message from the message queue and does not return until a message is obtained. This is the ANSI version of this method.

GetMessageW

Obtains a message from the message queue and does not return until a message is obtained. This is the Unicode version of this method.

PeekMessageA

Obtains a message from the message queue and returns if no message is obtained. This is the ANSI version of this method.

PeekMessageW

Obtains a message from the message queue and returns if no message is obtained. This is the Unicode version of this method.

 

Remarks

If the application is Unicode, it should use the PeekMessageW and GetMessageW methods. Otherwise, the application should use the PeekMessageA and GetMessageA methods.

Examples

ITfThreadMgr



HRESULT hr;
ITfMessagePump *pMessagePump;

hr = pThreadManager->QueryInterface(IID_ITfMessagePump, (LPVOID*)&pMessagePump);
if(SUCCEEDED(hr))
{
    //Use the ITfMessagePump interface. 
    
    //Release the ITfMessagePump interface. 
    pMessagePump->Release();
}


Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Redistributable

TSF 1.0 on Windows 2000 Professional

Header

Msctf.h

IDL

Msctf.idl

DLL

Msctf.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft