T
T
Tr3m2016-01-29 13:17:19
Programming
Tr3m, 2016-01-29 13:17:19

How to deploy a program when running a copy of this program?

Good afternoon.
There is a small utility (wpf) in C#.
It is necessary to make it so that when starting the 2nd copy of itself, it unfolds the first one. I tried to change the "template" to prohibit the launch of the second copy, but something does not work out. Please tell me how to implement it. Thanks in advance

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Peter, 2016-01-29
@petermzg

Here
is the Idea. Named mutex + send message.

S
Stanislav Makarov, 2016-01-29
@Nipheris

WinAPI: CreateEvent, OpenEvent, SetEvent, WaitForSingleObject

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question