As Jon said, the code should be exactly the same for either case. If you
want app B to check for app A before it runs, have app A create a named
mutex when it starts. When app B starts, check for the existence of the
mutex. If it's there, exit app B immediately. When app A exits, it should
close the mutex handle it got from CreateMutex, of course.
Paul T.
"Andrew Mc" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> Yep. I want to stop application B from running when application a is
> active. I can use the mutex code to check for multiple instances of a
> single app but I've been unable to get it to work for a different app in
> compact framework for some reason. Do you have any sample code you know
> works? This would be appreciated.
>
> Thanks
>
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!