GetMonitorTechnologyType function Null safety dxva2

int GetMonitorTechnologyType(
  1. int hMonitor,
  2. Pointer<Uint32> pdtyDisplayTechnologyType
)

Retrieves the type of technology used by a monitor.

_BOOL GetMonitorTechnologyType(
  HANDLE                       hMonitor,
  LPMC_DISPLAY_TECHNOLOGY_TYPE pdtyDisplayTechnologyType
);

Implementation

int GetMonitorTechnologyType(
    int hMonitor, Pointer<Uint32> pdtyDisplayTechnologyType) {
  final _GetMonitorTechnologyType = _dxva2.lookupFunction<
          Int32 Function(
              IntPtr hMonitor, Pointer<Uint32> pdtyDisplayTechnologyType),
          int Function(
              int hMonitor, Pointer<Uint32> pdtyDisplayTechnologyType)>(
      'GetMonitorTechnologyType');
  return _GetMonitorTechnologyType(hMonitor, pdtyDisplayTechnologyType);
}