Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Directs the host to handle a keyboard shortcut passed from the preview handler.
Syntax
HRESULT TranslateAccelerator(
[in] MSG *pmsg
);
Parameters
[in] pmsg
Type: MSG*
A pointer to a WM_COMMAND or WM_SYSCOMMAND window message that corresponds to a keyboard shortcut.
Return value
Type: HRESULT
If the keyboard shortcut is one that the host intends to handle, the host will process it and return S_OK; otherwise, it returns S_FALSE.
Remarks
Note This method is only called by a preview handler in response to an TranslateAccelerator call.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista, Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | shobjidl_core.h (include Shobjidl.h) |
Redistributable | Windows Search 4 or later |