mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 18:26:39 +02:00
13 lines
291 B
C
13 lines
291 B
C
|
|
#pragma once
|
||
|
|
#include <shellapi.h>
|
||
|
|
|
||
|
|
inline bool detect_game_mode()
|
||
|
|
{
|
||
|
|
QUERY_USER_NOTIFICATION_STATE notification_state;
|
||
|
|
if (SHQueryUserNotificationState(¬ification_state) != S_OK)
|
||
|
|
{
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
return (notification_state == QUNS_RUNNING_D3D_FULL_SCREEN);
|
||
|
|
}
|