Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Unique Instance of a program per user on citrix

Posted on 2006-04-14
2
Medium Priority
?
239 Views
Last Modified: 2008-03-04
Hi,

I am trying to find some code that checks to see if my C# program is already running if so switchs focus to the app, the tricky part is that its runs on a citrix terminal server.
So yes they may be multipul versions of the program running on the server but only one per user is allowed.  

I have code that check to see if the current process is running etc. (there are quite a few wxample on ee) but non of them check per user ..

Has any body done this ?

Thanks

Marcus
0
Comment
Question by:lambertm
2 Comments
 
LVL 37

Accepted Solution

by:
gregoryyoung earned 2000 total points
ID: 16455731
You can use a mutex to synchronize between ... http://odetocode.com/Blogs/scott/archive/2004/08/20/401.aspx includes a full example (and how to get it working so all users share the same instance if you so choose)

Cheers,

Greg
0
 
LVL 1

Author Comment

by:lambertm
ID: 16481198
Thanks for that
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Enter Foreign and Special Characters Enter characters you can't find on a keyboard using its ASCII code ... and learn how to make a handy reference for yourself using Excel ~ Use these codes in any Windows application! ... whether it is a Micr…
Suggested Courses

572 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question