ITfFnLMProcessor::QueryKey method (ctffunc.h)

Called to determine if the language model text service handles a key event.

Syntax

HRESULT QueryKey(
  [in]  BOOL   fUp,
  [in]  WPARAM vKey,
  [in]  LPARAM lparamKeydata,
  [out] BOOL   *pfInterested
);

Parameters

[in] fUp

Contains a BOOL that specifies if this is a key-down or a key-up event. Contains zero if this is a key-down event or nonzero otherwise.

[in] vKey

Contains the virtual-key code of the key. For more information about this parameter, see the wParam parameter in WM_KEYDOWN.

[in] lparamKeydata

Specifies the repeat count, scan code, extended-key flag, context code, previous key-state flag, and transition-state flag of the key. For more information about this parameter, see the lParam parameter in WM_KEYDOWN.

[out] pfInterested

Pointer to a BOOL that receives nonzero if the language model text service will handle the key event or zero otherwise.

Return value

This method can return one of these values.

Value Description
S_OK
The method was successful.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header ctffunc.h
DLL Msctf.dll
Redistributable TSF 1.0 on Windows 2000 Professional

See also

ITfFnLMProcessor

WM_KEYDOWN

WM_KEYUP