ITfKeystrokeMgr interface
The ITfKeystrokeMgr interface is implemented by the TSF manager and used by applications and text services to interact with the keyboard manager.
Members
The ITfKeystrokeMgr interface inherits from the IUnknown interface. ITfKeystrokeMgr also has these types of members:
Methods
The ITfKeystrokeMgr interface has these methods.
| Method | Description |
|---|---|
| AdviseKeyEventSink |
Installs a key event sink to receive keyboard events. |
| GetForeground |
Obtains the class identifier of the foreground TSF text service. |
| GetPreservedKey |
Obtains the command GUID for a preserved key. |
| GetPreservedKeyDescription |
Obtains the description string of an existing preserved key. |
| IsPreservedKey |
Determines if a command GUID and key combination is a preserved key. |
| KeyDown |
Passes a key down event to the keystroke manager. |
| KeyUp |
Passes a key up event to the keystroke manager. |
| PreserveKey |
Registers a preserved key. |
| SetPreservedKeyDescription |
Modifies the description string of an existing preserved key. |
| SimulatePreservedKey |
Simulates the execution of a preserved key sequence. |
| TestKeyDown |
Determines if the keystroke manager will handle a key down event. |
| TestKeyUp |
Determines if the keystroke manager will handle a key up event. |
| UnadviseKeyEventSink |
Removes a key event sink. |
| UnpreserveKey |
Unregisters a preserved key. |
Examples
HRESULT hr; ITfKeystrokeMgr *pKeyMgr; hr = pThreadManager->QueryInterface(IID_ITfKeystrokeMgr, (LPVOID*)&pKeyMgr); if(SUCCEEDED(hr)) { //Use the ITfKeystrokeMgr interface. //Release the ITfKeystrokeMgr interface. pKeyMgr->Release(); }
Requirements
|
Minimum supported client |
Windows 2000 Professional [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps | Windows Store apps] |
|
Redistributable |
TSF 1.0 on Windows 2000 Professional |
|
Header |
|
|
IDL |
|
|
DLL |
|