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 6318685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T15:40:09+00:00 2026-05-24T15:40:09+00:00

(c#, .net framework 2.0 desired) Hello. This is a pratical and technical question… you

  • 0

(c#, .net framework 2.0 desired)

Hello.

This is a pratical and technical question… you have been warned. 🙂

I have a windows service, which requires each user to provide a login to an online service. Lets imagine we have two users a and b.

a runs the installation process, which at the end asks for the login credentials for the online serive. Stores it locally and ding, when the service starts it knows the user.

b comes along, logs off a, logs themself on. The service notices a new user, checks to see if it has login details, figures out it doesn’t.

I thought I could use Process.Start to fire up a windows app. nope.
So I googled and it looks like if I write a bunch of code (shown here as CreateProcessAsUser ) it’s possible, but not advised to do this.

So… what should I do? Happy for any technical or pratical solutions.

  • 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-24T15:40:10+00:00Added an answer on May 24, 2026 at 3:40 pm

    Showing any kind of user interface from within a service is not only discouraged, but even explicitly prevented in some Windows platforms (windows Server 2008 comes to my mind).
    The common approach for this task is to develop two independet modules, a Windows Service and a GUI application that communicates with the services using one of the many IPC schemes available, depending on the complexity of the data to be transfered. A loopback WCF (Web Service) for example could be a good approach.
    If implemented properly, this solution will also work in complex scenarios like multiple terminal services sessions.

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

Sidebar

Related Questions

Does .NET framework have a collection of icons for use in Windows Forms or
Suppose I have a .Net Framework 3.5 SP1/CLR 2.0 application which needs to run
I have been running net framework 4.0. When I look at IIS, I can
Project: Winforms, .NET framework: 3.5 (Visual Studio 2008) My problem is: I have a
which versions of the .net framework are installed when you install visual studio 2010.
Is there a .NET framework interface like this? public interface IEvent { event EventHandler
I've been looking around but I have not found a solution for this problem:
How .NET framework creates SOAP message from message contract? Which serializer class is used
I have a windows form application in which the Form1 object's initial WindowState ==
The .Net framework try-catch implementation only allows you to catch types which inherit off

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.