GetWindowDisplayAffinity function Null safety user32

int GetWindowDisplayAffinity (
  1. int hWnd,
  2. Pointer<Uint32> pdwAffinity
)

Retrieves the current display affinity setting, from any process, for a given window.

BOOL GetWindowDisplayAffinity(
  HWND  hWnd,
  DWORD *pdwAffinity
);

Implementation

int GetWindowDisplayAffinity(int hWnd, Pointer<Uint32> pdwAffinity) {
  final _GetWindowDisplayAffinity = _user32.lookupFunction<
      Int32 Function(IntPtr hWnd, Pointer<Uint32> pdwAffinity),
      int Function(
          int hWnd, Pointer<Uint32> pdwAffinity)>('GetWindowDisplayAffinity');
  return _GetWindowDisplayAffinity(hWnd, pdwAffinity);
}