TranslateAccelerator function user32
Processes accelerator keys for menu commands. The function translates a WM_KEYDOWN or WM_SYSKEYDOWN message to a WM_COMMAND or WM_SYSCOMMAND message (if there is an entry for the key in the specified accelerator table) and then sends the WM_COMMAND or WM_SYSCOMMAND message directly to the specified window procedure. TranslateAccelerator does not return until the window procedure has processed the message.
int TranslateAcceleratorW(
HWND hWnd,
HACCEL hAccTable,
LPMSG lpMsg
);
Implementation
int TranslateAccelerator(int hWnd, int hAccTable, Pointer<MSG> lpMsg) =>
_TranslateAccelerator(hWnd, hAccTable, lpMsg);