GetPhysicalMonitorsFromHMONITOR function Null safety dxva2

int GetPhysicalMonitorsFromHMONITOR (
  1. int hMonitor,
  2. int dwPhysicalMonitorArraySize,
  3. Pointer<PHYSICAL_MONITOR> pPhysicalMonitorArray
)

Retrieves the physical monitors associated with an HMONITOR monitor handle.

_BOOL GetPhysicalMonitorsFromHMONITOR(
  HMONITOR           hMonitor,
  DWORD              dwPhysicalMonitorArraySize,
  LPPHYSICAL_MONITOR pPhysicalMonitorArray
);

Implementation

int GetPhysicalMonitorsFromHMONITOR(
    int hMonitor,
    int dwPhysicalMonitorArraySize,
    Pointer<PHYSICAL_MONITOR> pPhysicalMonitorArray) {
  final _GetPhysicalMonitorsFromHMONITOR = _dxva2.lookupFunction<
          Int32 Function(IntPtr hMonitor, Uint32 dwPhysicalMonitorArraySize,
              Pointer<PHYSICAL_MONITOR> pPhysicalMonitorArray),
          int Function(int hMonitor, int dwPhysicalMonitorArraySize,
              Pointer<PHYSICAL_MONITOR> pPhysicalMonitorArray)>(
      'GetPhysicalMonitorsFromHMONITOR');
  return _GetPhysicalMonitorsFromHMONITOR(
      hMonitor, dwPhysicalMonitorArraySize, pPhysicalMonitorArray);
}