1 2 #include<shellapi.h> 3 4 // 5 // Returns >0 if taskbar auto hide is on. 6 // 7 int IsTaskbarAutoHideOn() 8 { 9 APPBARDATA ABData; 10 11 ABData.cbSize = sizeof(ABData); 12 13 return 14 SHAppBarMessage(ABM_GETSTATE, &ABData) 15 & ABS_AUTOHIDE; 16 } 17 18