SaveCurrentMonitorSettings function dxva2

Win32Result<int> SaveCurrentMonitorSettings(
  1. HANDLE hMonitor
)

Saves the current monitor settings to the display's nonvolatile storage.

To learn more, see learn.microsoft.com/windows/win32/api/highlevelmonitorconfigurationapi/nf-highlevelmonitorconfigurationapi-savecurrentmonitorsettings.

Implementation

Win32Result<int> SaveCurrentMonitorSettings(HANDLE hMonitor) {
  resolveGetLastError();
  final result_ = _SaveCurrentMonitorSettings(hMonitor);
  return .new(value: result_, error: GetLastError());
}