GetWindowModuleFileName function user32

int GetWindowModuleFileName(
  1. HWND hwnd,
  2. PWSTR pszFileName,
  3. int cchFileNameMax
)

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);