I need to enumerate all running applications. In particular, all top windows. And for every window I need to add my custom item to the system menu of that window.
Ho
Once you have another window's top level handle, you may be able to call GetMenu() to retrieve the Window's system menu and then modify it, eg:
HMENU hMenu = GetMenu(hwndNext);