I need to detect if some application is currently running in full screen mode. If yes, then I must stop my application. So, how can I detect that? p.s. Win32 C++
On a Windows computer, you can set Google Chrome, Internet Explorer, Microsoft Edge, or Mozilla Firefox to full-screen mode, hiding the toolbars and address bar by pressing the F11 key. To reverse this action and show these items again, press F11 again.
Using the F11 key on your computer's keyboard will let you both enter and exit full-screen mode in many applications. If you use a laptop, you might need to press Fn + F11 to activate this keyboard shortcut.
Fullscreen mode on a Windows computer To exit the standard view with the address bar, status bar, etc., always showing, press F11 on your keyboard to enter fullscreen. Pressing F11 again goes back to normal view.
All other answers are rather hackish.
Windows Vista, Windows 7 and up support this:
QUERY_USER_NOTIFICATION_STATE pquns;
SHQueryUserNotificationState(&pquns);
QUNS_BUSY
and QUNS_RUNNING_D3D_FULL_SCREEN
indicate a fullscreen app running (the F11 or a videogame fullscreen, not a maximized window). Videogames I tried use just QUNS_BUSY
on Windows 10, I was unable to trigger QUNS_RUNNING_D3D_FULL_SCREEN
.
QUNS_PRESENTATION_MODE
indicates a special Windows mode for showing presentations on a projector, effectively fullscreen mode, too.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With