Regards
--
Chris Tacke
Co-founder
OpenNETCF.org
Are you using the SDF? Let's do a case study.
Email us at d c s @ o p e n n e t c f . c o m
http://www.opennetcf.org/donate
"Miguel" <miguel...@telenet.be> wrote in message
news:1127134435.1...@g49g2000cwa.googlegroups.com...
Regards
[1] http://www.sergeybogdanov.com/Samples/SPSingleInstance.zip
--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com
Will this work aswell, since you're working with FindWindow (and there
isn't)
Regards
IntPtr evnt = CreateEvent(IntPtr.Zero, false, false, AppNamedEvent);
if (Marshal.GetLastWin32Error() != 0)
{
// one instance of application is run,
// do work
}
...
CloseHandle(evnt);
--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com