Jump to content

Check out our Community Blogs

Register and join over 40,000 other developers!

Recent Topics

Recent Status Updates

View All Updates

- - - - -

cross Session process creation


  • Please log in to reply
No replies to this topic

#1 Firebird_38


    CC Addict

  • Advanced Member
  • PipPipPipPipPip
  • 117 posts

Posted 01 August 2008 - 09:29 AM

Hi, Ihave XP Pro and I want to create a process (run a program, that is) on another user's session. With Terminal Services, one can have multiple sessions open at one time (multiple users logged in at the same time), either all but one user disconnected, or using remote desktop (and some tweaks).

Using CreateProcessWithLogonW or CreateProcessAsUser doesn't really work, because even though the user now officially owns this process, it is still running in the current session. Window stations and/or desktops of uther sessions seem to be very much unaccessible. However, with for instance Task Manager, you can see all running programs (given the right priviledges) that other concurrent users are running. So, if I am allowed to have some interaction then why not more?

Does anyone have a solution short of running a rometely controlled program in that user's session (for instance, started during login) ?

  • 0

Also tagged with one or more of these keywords: session

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download