ITfKeystrokeMgr::SimulatePreservedKey method (msctf.h)
Simulates the execution of a preserved key sequence.
Syntax
HRESULT SimulatePreservedKey(
[in] ITfContext *pic,
[in] REFGUID rguid,
[out] BOOL *pfEaten
);
Parameters
[in] pic
Pointer to the application context. This value was returned by a previous call to ITfDocumentMgr::CreateContext.
[in] rguid
Contains the command GUID of the preserved key.
[out] pfEaten
Pointer to a BOOL that indicates if the key event was handled. If this value receives TRUE, the key event was handled. If this value is FALSE, the key event was not handled.
Return value
This method can return one of these values.
Value | Description |
---|---|
|
The method was successful. |
|
The preserved key cannot be simulated. |
|
One or more parameters are invalid. |
|
An unspecified error occurred. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps | UWP apps] |
Minimum supported server | Windows 2000 Server [desktop apps | UWP apps] |
Target Platform | Windows |
Header | msctf.h |
DLL | Msctf.dll |
Redistributable | TSF 1.0 on Windows 2000 Professional |