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. CreateProcessAsUser

CreateProcessAsUser

Scheduled Pinned Locked Moved C / C++ / MFC
help
2 Posts 2 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
    vineeshV
    wrote on last edited by
    #1

    In my code i am using CreateProcessAsUser to create new process.The purpopse of the code to execute any of the process (console applicaions and window applicaions ) .The code is build as a service and after the CreateProcessAsUser ,the process id of the newly created process will be returned .The functionality works fine for window based applications (notepad ,regedit ..etc..) but when console applications such as cmd are passed to the CreateProcessAsUser ,the function returns process id ,but no such process informations are found in the task manager .. I think the newly created processes getting exitied as soon as they are spawned .. Can any body help me in this ...

    vineesh

    M 1 Reply Last reply
    0
    • V vineeshV

      In my code i am using CreateProcessAsUser to create new process.The purpopse of the code to execute any of the process (console applicaions and window applicaions ) .The code is build as a service and after the CreateProcessAsUser ,the process id of the newly created process will be returned .The functionality works fine for window based applications (notepad ,regedit ..etc..) but when console applications such as cmd are passed to the CreateProcessAsUser ,the function returns process id ,but no such process informations are found in the task manager .. I think the newly created processes getting exitied as soon as they are spawned .. Can any body help me in this ...

      vineesh

      M Offline
      M Offline
      marcio k
      wrote on last edited by
      #2

      can you show us the code?

      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