DISPLAYCONFIG to get current display mode code example
Example: DISPLAYCONFIG to get current display mode
BOOL EnumDisplaySettings(
LPCTSTR lpszDeviceName, // display device
DWORD iModeNum, // graphics mode
[In, Out] LPDEVMODE lpDevMode // graphics mode settings
);