winapi - How to access windows in another session -


this question has answer here:

i developing application observing other applications (including applications of user sessions) application should collect information cpu loading, memory usage , state of main window (if exists) of each application. trying obtain window state of other application. if window in same session (as application) ok.

and... have problem obtaining info windows in session. have read old topic: how can enumerate open windows (~enumwindows) of user session , understood should start new process within each session in order enumerate windows in session's desktop.

but maybe in windows server 2012 appeared new solution(s) issue (some new api functions or interaction dwm.exe in session etc)? if administrative permissions (and/or group policies) needed, not problem

thank you

ps. using process.mainwindowhandle property (that uses getwindowthreadprocessid function). tried use openwindowstation("\sessions\1\windows\windowstations\winsta0") returns error 161 (invalid path)

you need execute code in desktop windows wish observe.


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -