How to avoid multipal instances of an application in Windows Vista?
-
Hi to all!! I have created a service which lunches an application as it starts in Windows Vista without UAC popup. I m now working on the unique instance of the service for that I reffered the article http://www.codeproject.com/KB/cpp/avoidmultinstance.aspx[^] I have maintained a log file so that I can trace the flow of the program. I m getting two different values for the mutex object i.e. 2 objects are being created. For creating the Service I reffered from the article http://www.codeproject.com/KB/vista-security/VistaSessions.aspx[^] I think because of the impersonating the token the handle values are changing but I m not sure about it. Is there any other solution for this problem? Please help me to overcome this problem. Thanks and regards, Vaibhav Deshpande.