GetNumberOfPhysicalMonitorsFromHMONITOR function Null safety dxva2

int GetNumberOfPhysicalMonitorsFromHMONITOR (
  1. int hMonitor,
  2. Pointer<Uint32> pdwNumberOfPhysicalMonitors
)

Retrieves the number of physical monitors associated with an HMONITOR monitor handle. Call this function before calling GetPhysicalMonitorsFromHMONITOR.

_BOOL GetNumberOfPhysicalMonitorsFromHMONITOR(
  HMONITOR hMonitor,
  LPDWORD  pdwNumberOfPhysicalMonitors
);

Implementation

int GetNumberOfPhysicalMonitorsFromHMONITOR(
    int hMonitor, Pointer<Uint32> pdwNumberOfPhysicalMonitors) {
  final _GetNumberOfPhysicalMonitorsFromHMONITOR = _dxva2.lookupFunction<
          Int32 Function(
              IntPtr hMonitor, Pointer<Uint32> pdwNumberOfPhysicalMonitors),
          int Function(
              int hMonitor, Pointer<Uint32> pdwNumberOfPhysicalMonitors)>(
      'GetNumberOfPhysicalMonitorsFromHMONITOR');
  return _GetNumberOfPhysicalMonitorsFromHMONITOR(
      hMonitor, pdwNumberOfPhysicalMonitors);
}