Back to X64dbg

PLUG_CB_WINEVENTGLOBAL

docs/developers/plugins/Callbacks/plugcbwineventglobal.rst

2026.04.20578 B
Original Source

PLUG_CB_WINEVENTGLOBAL

Called before TranslateMessage and DispatchMessage Windows functions (PreTranslateMessage).

Avoid calling user32 functions without precautions here, there will be a recursive call if you fail to take countermeasures.

This function is global, so it also captures hotkeys (see Qt documentation). In Qt5 this function is almost never called, use :doc:plugcbwinevent instead.

::

struct PLUG_CB_WINEVENTGLOBAL
{
    MSG* message;
    bool retval; //only set this to true if you want Qt to ignore the event.
};