GetNumberOfPhysicalMonitorsFromHMONITOR function dxva2
Retrieves the number of physical monitors associated with an HMONITOR monitor handle.
To learn more, see learn.microsoft.com/windows/win32/api/physicalmonitorenumerationapi/nf-physicalmonitorenumerationapi-getnumberofphysicalmonitorsfromhmonitor.
Implementation
Win32Result<bool> GetNumberOfPhysicalMonitorsFromHMONITOR(
HMONITOR hMonitor,
Pointer<Uint32> pdwNumberOfPhysicalMonitors,
) {
final result_ = GetNumberOfPhysicalMonitorsFromHMONITOR_Wrapper(
hMonitor,
pdwNumberOfPhysicalMonitors,
);
return .new(value: result_.value.i32 != FALSE, error: result_.error);
}