SetMonitorDisplayAreaSize function dxva2
Win32Result<int>
SetMonitorDisplayAreaSize(
- HANDLE hMonitor,
- MC_SIZE_TYPE stSizeType,
- int dwNewDisplayAreaWidthOrHeight
Sets the width or height of a monitor's display area.
To learn more, see learn.microsoft.com/windows/win32/api/highlevelmonitorconfigurationapi/nf-highlevelmonitorconfigurationapi-setmonitordisplayareasize.
Implementation
Win32Result<int> SetMonitorDisplayAreaSize(
HANDLE hMonitor,
MC_SIZE_TYPE stSizeType,
int dwNewDisplayAreaWidthOrHeight,
) {
final result_ = SetMonitorDisplayAreaSize_Wrapper(
hMonitor,
stSizeType,
dwNewDisplayAreaWidthOrHeight,
);
return .new(value: result_.value.i32, error: result_.error);
}