gozno
12-05-2007, 04:54 PM
Is there a way to check for a process running under a different "Session ID" on a terminal server?
I need to replace a file that may be open in multiple terminal sessions.
The processes show up in the task manager but I can't seem to use Window.EnumerateProcesses or System.EnumerateProcesses to see if they are open by other users. Using either of the EnumerateProcesses fuctions it looks like I can only see system and current user processes.
I don't want to kill the running processes from the other users per say, just need to know they are still running so I can infom the administrator before he continues with the installation.
The built in "file in use" check works great! (if the local user has the file open) but totaly misses when the file is opened by a terminal session user.
Am I missing something totaly obvious?
BTW, LOVE Setup Factory!! (had to get my fanboy raves out ;) )
I need to replace a file that may be open in multiple terminal sessions.
The processes show up in the task manager but I can't seem to use Window.EnumerateProcesses or System.EnumerateProcesses to see if they are open by other users. Using either of the EnumerateProcesses fuctions it looks like I can only see system and current user processes.
I don't want to kill the running processes from the other users per say, just need to know they are still running so I can infom the administrator before he continues with the installation.
The built in "file in use" check works great! (if the local user has the file open) but totaly misses when the file is opened by a terminal session user.
Am I missing something totaly obvious?
BTW, LOVE Setup Factory!! (had to get my fanboy raves out ;) )