GetWindowModuleFileName function Null safety user32

int GetWindowModuleFileName(
  1. int hwnd,
  2. Pointer<Utf16> pszFileName,
  3. int cchFileNameMax
)

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