Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7636271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T07:37:58+00:00 2026-05-31T07:37:58+00:00

After building a service that launches an interactive processes in a user’s session via

  • 0

After building a service that launches an interactive processes in a user’s session via CreateProcessAsUser and lpDesktop specified in STARTUPINFO — is it possible to change the session that a process is executing in on the fly?

So if we have notepad running in Session 1 and another user logged onto the same machine in Session 2, can we change Notepad’s SessionId from 1 to 2? I understand the well-followed and sane way to accomplish this is to just start notepad in Session 2, but can we use API calls to make it happen?

By the way I’m writing in C# but am entirely comfortable using pInvoke or low level languages.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T07:37:59+00:00Added an answer on May 31, 2026 at 7:37 am

    It is not possible to move a running process from one session to another.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building a product that will ship after .Net 4.0 is released. Is MEF
I'm building a tagger. After a user submits a tag, ajax returns: {returnmessage:The Ajax
I'm currently building a web form using APEX that is losely modelled after a
I am building a 'software as a service' website that will be charging users
While building this web service and the app that calls it, we have noticed
I'm about to start building an iPad client for an existing WCF service that
I'm building a service that will let me know if the location hasn't change
I'm building a .NET web service that will be consumed by a vendor's application,
I am building an app that can use a user's current location on certain
Im building a WPF 3.5 desktop app that has a self-hosted WCF service. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.