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

  • SEARCH
  • Home
  • 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 8266865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T05:18:56+00:00 2026-06-08T05:18:56+00:00

I have a system service that starts another application. This application (written in C#)

  • 0

I have a system service that starts another application. This application (written in C#) at some point needs to get all the opened windows (applications) and list their names.

I used EnumWindow (from Win32), i used Process.GetProcesses() and process.MainWindowTitle (from C#) all i get is this:

Process: UI0Detect

Window title: Interactive Services Detection

If I run that application by hand it gives me all the windows as it should. But when the system service runs the app all i get is this one service.

How can i make the app get me the correct list of active windows?

Thank you

  • 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-06-08T05:18:58+00:00Added an answer on June 8, 2026 at 5:18 am

    Windows services do not run in the same “session” as a normal program, so the 2nd started program also starts in the special session when your service launches it. You will need to use CreateProcessAsUser and create your second app in the user session you want to monitor.

    See this MSDN article on writing interactive services for more information.

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

Sidebar

Related Questions

I have a requirement that i want to get all the system services running
I have an Activity that starts a Service. In my Activity: startService(new Intent(this, MyService.class));
Hi All, I have an application (windows service/C#) which starts EXCEL and POWERPOINT and
I have a system service running on my Windows machine that can impersonate the
We have a plugin system on a WCF service that checks libraries placed in
I have a wcf service that uses the .net System.AddIns framework to load assemblies
I have this web service : using System.Web.Services; namespace Contracts { [WebService(Namespace = http://tempuri.org/)]
We have a Data Access service in our SOA WCF system. This service is
If I have a service definition/implementation like this: using System; using System.ServiceModel; namespace aspace.service
I have an application that is installed per-machine (since it uses a service). One

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.