how to check display resolution windows 10 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
);