Edit: Err I should test a bit more before posting... That code also returns true on maximized windows. The following code solves problem 1:
code:
// Check if full screen app is running
bool IsFullScreenAppRunning () {
HWND hWnd = GetForegroundWindow();
if(!hWnd)
return false;
if(!IsWindowVisible(hWnd) || IsIconic(hWnd) || !IsZoomed(hWnd))
return false;
RECT rc;
if(!GetWindowRect(hWnd,&rc))
return false;
return (rc.right - rc.left >= GetSystemMetrics(SM_CXSCREEN) && rc.bottom - rc.top >= GetSystemMetrics(SM_CYSCREEN));
}
But the second problem still exists...