Is it anyhow possible to get the handle (hWnd) for window in a different user session?
I know there is no easy way, maybe it is impossible, but maybe someone knows how this can be done
Is it anyhow possible to get the handle (hWnd) for window in a different user session?
I know there is no easy way, maybe it is impossible, but maybe someone knows how this can be done
You cannot use HWND
s across session boundaries. So no, you cannot obtain an HWND
for a window in another session.
If you need to do something in another session, you will have to start a new process inside that session and let that process do the work you need, and then it can communicate back to your process if needed, using a suitable IPC mechanism such as a pipe, socket, etc.