Windows 8 and above changed the (default-DPI) size of "big" taskbar icons (introduced in Windows 7) from 32×32 to 24×24. However, GetSystemMetrics(SM_CXICON) and GetSystemMetrics(SM_CXSMICON) still return 32 and 16 respectively.
Is there any Windows API that returns the actual size of (by default) 24?
I don't think there is such an API. You may use
GetMonitorInfo(), and check the values ofMONITORINFO.rcWorkandMONITORINFO.rcMonitor(MONITORINFO)