GetWindowModuleFileName function user32
Retrieves the full path and file name of the module associated with the specified window handle.
UINT GetWindowModuleFileNameW(
HWND hwnd,
LPWSTR pszFileName,
UINT cchFileNameMax
);
Implementation
int GetWindowModuleFileName(
int hwnd, Pointer<Utf16> pszFileName, int cchFileNameMax) =>
_GetWindowModuleFileName(hwnd, pszFileName, cchFileNameMax);