Back to X64dbg

GuiGetWindowHandle

docs/developers/functions/gui/GuiGetWindowHandle.md

2026.04.20309 B
Original Source

GuiGetWindowHandle

Obtains the main window handle for x64dg.

c++
HWND GuiGetWindowHandle();

Parameters

This function has no parameters.

Return Value

Returns the main window handle for x6dbg as a HWND variable

Example

c++
HWND hWnd = GuiGetWindowHandle();