GetWindowModuleFileNameW method

int GetWindowModuleFileNameW(
  1. Pointer<HWND__> hwnd,
  2. Pointer<Uint16> pszFileName,
  3. int cchFileNameMax
)

Implementation

int GetWindowModuleFileNameW(
  ffi.Pointer<HWND__> hwnd,
  ffi.Pointer<ffi.Uint16> pszFileName,
  int cchFileNameMax,
) {
  return (_GetWindowModuleFileNameW ??= _dylib.lookupFunction<
      _c_GetWindowModuleFileNameW,
      _dart_GetWindowModuleFileNameW>('GetWindowModuleFileNameW'))(
    hwnd,
    pszFileName,
    cchFileNameMax,
  );
}