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. C / C++ / MFC
  4. Win Service is not accessing desktop application

Win Service is not accessing desktop application

Scheduled Pinned Locked Moved C / C++ / MFC
c++
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.
  • G Offline
    G Offline
    gtag
    wrote on last edited by
    #1

    I have written windows service in C++ using winsvc.h. Registering the exe to run as service. Service runs under "SYSTEM" credentials and it starts at system startup. Using this service I can able to access processes only which are running under "SYSTEM". Is there any property or method related to service in WinSvc.h while creating or starting service, which is used to set the service to access any process running on the desktop. I can set this manually in services.msc for particular service under log on tab in properties. But want to set it programmatically. I tried checking many blogs and googled but there is no clue. Please give me clue. Thanks in advance. Regards, Gtag.

    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