I need to detect which Windows 7 Gadgets are currently loaded. I know for a fact that the process they run within is "explorer.exe" and that the each gadget has a window class is called SideBar_HTMLHostWindow with in instance of Internet Explorer_Server (snapshot attached).

However, I am not able to enumerate any further child windows or get window text etc. Any help would be appreciated.

Snapshot

UPDATE: This may be easier than it seems. Since it is tied to windows and remembers which gadgets are supposed to run at startup, there may be some data stored in the registry or disk perhaps?

有帮助吗?

解决方案

Found the answer: C:\Users\Raheel Khan\AppData\Local\Microsoft\Windows Sidebar\Settings.ini. This file gets updated every time a gadget is added or removed.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top