I have been asked to make sure that a WinForm app can only have one instance
and this would not be an issue if that was the only part. I could simply
loop through the processes and see if the process name is already in the
collection. However, the second part of the request was to make sure that if
someone is running the app and someone else does the quick login or uses
Terminal Services that they be able to run the app under their network ID.
So I need to find a way to look at processes under a particular user or to
compare the processes users. Anyone know how this could be done?

TIA

-Stanley

Re: Single Instance of App Per User by Ed

Ed
Mon Feb 09 13:00:05 CST 2004

Here is an article to help with the single instance side:
http://www.codeproject.com/vb/net/sing_inistan.asp.

"Stanley" <webmaster@nospam-glass-images.com> wrote in message
news:uc8plhz7DHA.2392@TK2MSFTNGP11.phx.gbl...
> I have been asked to make sure that a WinForm app can only have one
instance
> and this would not be an issue if that was the only part. I could simply
> loop through the processes and see if the process name is already in the
> collection. However, the second part of the request was to make sure that
if
> someone is running the app and someone else does the quick login or uses
> Terminal Services that they be able to run the app under their network ID.
> So I need to find a way to look at processes under a particular user or to
> compare the processes users. Anyone know how this could be done?
>
> TIA
>
> -Stanley
>
>