ITfMessagePump interface (msctf.h)
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.
The ITfMessagePump interface inherits from the IUnknown interface. ITfMessagePump also has these types of members:
The ITfMessagePump interface has these methods.
ITfMessagePump::GetMessageA ITfMessagePump::GetMessageA method |
ITfMessagePump::GetMessageW ITfMessagePump::GetMessageW method |
ITfMessagePump::PeekMessageA ITfMessagePump::PeekMessageA method |
ITfMessagePump::PeekMessageW ITfMessagePump::PeekMessageW method |
If the application is Unicode, it should use the PeekMessageW and GetMessageW methods. Otherwise, the application should use the PeekMessageA and GetMessageA methods.
HRESULT hr;
ITfMessagePump *pMessagePump;
hr = pThreadManager->QueryInterface(IID_ITfMessagePump, (LPVOID*)&pMessagePump);
if(SUCCEEDED(hr))
{
//Use the ITfMessagePump interface.
//Release the ITfMessagePump interface.
pMessagePump->Release();
}
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | msctf.h |
Redistributable | TSF 1.0 on Windows 2000 Professional |