简体   繁体   中英

How to detect if Windows 8 is showing desktop

在用C#编写并在Windows 8上运行的Windows桌面应用程序中,如何检测Windows 8是否处于桌面模式(即显示桌面而不是现代UI)?

Although it's in C++, the Start Screen Visibility Sample should be a good starting point for you. It uses COM objects to get the state of all monitors on the system that are either displaying Windows Store Apps or the Start Screen, and illustrates how to receive notifications when the state of a monitor changes or when the visibility of the Start screen changes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM