Windows error 0xC026258D, -1071241843

Detailed Error Information

ERROR_GRAPHICS_MONITOR_NO_LONGER_EXISTS[1]

MessageThe operating system asynchronously destroyed the monitor which corresponds to this handle because the operating system's state changed. This error typically occurs because the monitor PDO associated with this handle was removed, the monitor PDO associated with this handle was stopped, or a display mode change occurred. A display mode change occurs when windows sends a WM_DISPLAYCHANGE windows message to applications.
Declared inwinerror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)true
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode38 (0x026)
NameFACILITY_GRAPHICS[2][1]
DescriptionThe source of the error code is the graphics drivers.[2][1]
Error Code9613 (0x258d)

Questions

0votes
1answer

Winapi c++ trying to get primary monitor's brightness

I tried to get the brightness of the primary monitor using the following code: POINT monitorPoint = { 0, 0 }; HANDLE monitor = MonitorFromPoint(monitorPoint, MONITOR_DEFAULTTOPRIMARY); DWORD minb, maxb, currb; if (GetMonitorBrightness(monitor, &minb, &currb, &maxb) == FALSE) { std::cout << GetLastError() << std::endl; } But it fails and GetLastError() returns [...] read more
c++
winapi

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0