I'm working on a C#/.Net1.1 application where I need to detect if the user has a specific process running (e.g. iexplore.exe), and if this application currently has the window focus.
Currently this is implemented by referencing user32.dll, asking it the process ID from the main window and then doing Process.GetProcessByID(...); but for normal users this fails under Citrix for lack of permissions. (SecurityPermission LinkDemand)
So I wondered if there's another way of getting this information under Citrix. Both my app and the to-be-observed apps are running from the citrix server. I've been lookng into WMI but I can't quite figure out if it can serve me. Is this the way to go, or is there yet another route to be taken?
Thanks in advance, -- Jasper
This conversation is currently closed to new comments.
If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.
window focus detection under Citrix
I'm working on a C#/.Net1.1
application where I need to detect if
the user has a specific process
running (e.g. iexplore.exe), and if
this application currently has the
window focus.
Currently this is implemented by
referencing user32.dll, asking it the
process ID from the main window and
then doing
Process.GetProcessByID(...); but for
normal users this fails under Citrix
for lack of permissions.
(SecurityPermission LinkDemand)
So I wondered if there's another way
of getting this information under
Citrix. Both my app and the
to-be-observed apps are running from
the citrix server. I've been lookng
into WMI but I can't quite figure out
if it can serve me. Is this the way
to go, or is there yet another route
to be taken?
Thanks in advance,
--
Jasper