GetWindowModuleFileName function user32
Retrieves the full path and file name of the module associated with the specified window handle.
To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-getwindowmodulefilenamew.
Implementation
@pragma('vm:prefer-inline')
int GetWindowModuleFileName(HWND hwnd, PWSTR pszFileName, int cchFileNameMax) =>
_GetWindowModuleFileName(hwnd, pszFileName, cchFileNameMax);