2

I've seen all the answers for the standard framework

What is the correct way to create a single instance application?
Prevent multiple instances of a given app in .NET?
What is the best way to make a single instance application in .net?

How do I check whether another process with the same name exists using the compact framework?
The 3 parameter constructor is not supported by the CF Process GetProcessByName is not supported by the CF

Community
  • 1
  • 1
SwDevMan81
  • 48,814
  • 22
  • 151
  • 184
  • 1
    Why don't you want to use mutex? MSDN says it's available for CF. http://msdn.microsoft.com/en-us/library/system.threading.mutex.aspx (but not for all versions and platforms - is this the case?) – empi Jul 20 '09 at 11:54
  • The 3 parameter constructor is not supported – SwDevMan81 Jul 20 '09 at 12:03
  • @empi Mutex for Compact Framework does not support naming... – cyber-monk Mar 18 '14 at 20:56

2 Answers2

1

OpenNETCF gives you class OpenNETCF.Threading.NamedMutex that let's you create system-wide named mutex.

http://www.opennetcf.com/library/sdf/html/40db385b-e21b-7c38-6f22-7a7954a30aa2.htm

empi
  • 15,755
  • 8
  • 62
  • 78
0

Perhaps the steps described on blog: http://www.nesser.org/blog/archives/56 could help (also check the comments).

LP, Dejan

Dejan Stanič
  • 787
  • 7
  • 14