Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows API
  4. How to avoid multipal instances of an application in Windows Vista?

How to avoid multipal instances of an application in Windows Vista?

Scheduled Pinned Locked Moved Windows API
helpc++comsecuritydebugging
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vaibhav Deshpande 0
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups