Recovers the original virtual-key value associated with a key input message that has already been processed by the IME.
Syntax
HRESULT GetVirtualKey( HWND hWnd, UINT *puVirtualKey );
Parameters
- hWnd
- [in] Handle to the window that receives the key message.
- puVirtualKey
- [out] Address of an unsigned integer value that receives the original virtual-key value.
Return Value
Returns S_OK if successful, or an error code otherwise.
Remarks
This method maps to the ImmGetVirtualKey function documented in the Microsoft® Platform Software Development Kit (SDK).