Đã Đóng

C# console app that returns all processes for all users where MainWindowhandle != 0

TLDR:

The attached console app does not work when run by a Windows Service. We need to be able to read the MainWindowHandle property for all processes, for all users, when run by a service in the non-interactive desktop. Unfortunately, MainWindowHandle is always 0 as the service cannot interact with the desktop.

Details:

I am looking for a C# console application that returns the processes for all users. Unfortunately, the application MUST work when executed from the non-interactive desktop (Session ID 0). I need the Processes Name, SessionID, Path and Start Time. If possible, we should also return the product and product version.

I have written and uploaded a base skeleton of what I need, it works when run directly but does not provide the necessary information when run by a Windows Service. Windows, by design, prevents my Windows Service form interacting with the desktop. This meant that all processes had a MainWindowTitle of 0. I need to get all processes where MainWindowTitle != 0.

The resulting console app will be executed by a service running as LocalSystem. It is absolutely critical that the resulting application can read the MainWindowTitle property, so we only return processes with an active GUI.

Can someone help by fixing the attached console app project?

Kĩ năng: Lập trình C#, Lập trình C++, .NET, Kiến trúc phần mềm, Màn hình Windows

Xem nhiều hơn: develop gui console app vbnet, convert console app windows app, read xml delphi console app, facebook app code allow users upload images, console app post web, console app battleship, convert vbs net console app, converting console app windows app, vbnet convert console app, convert vb6 console app net, convert visual console app windows forms, freelance c# console app, C# Console App, c# console app update line, .net core 2.0 console app exe, c# console weather app, c# console app with gui, c++ console app visual studio 2017, docker c# console app, how to use app config in c# console application

Về Bên Thuê:
( 2 nhận xét ) London, United Kingdom

ID dự án: #24249341

6 freelancer chào giá trung bình£44 cho công việc này

vano101

Hello I have 10 years of experience with C# and 20 years of experience with Windows Desktop application development. What is about follow solution: your service run another app under current user and it returns all wi Thêm

£15 GBP trong 1 ngày
(2029 Nhận xét)
8.1
xeathprynx

Hello Sir/ Ma’am As a highly skilled full stack developer, I have rich experience in JAVA, C, C++, C# Python , Arduino, [login to view URL], Word press, and ANDROID. I am very confident with my skills and I'd like to he Thêm

£15 GBP trong 1 ngày
(121 Nhận xét)
5.8
writingapp

Hi. I am ready to write your project Write apps on your demand in many languages (Visual Basic, VBA, VBS, .NET, C#, JS, Python, Java, PowerShell) Write database apps including many db formats: MS Access, MS SQL, SQL Thêm

£190 GBP trong 3 ngày
(38 Nhận xét)
5.0
xuteng

I have C# AND C++ programing export. I can carry out your project as you want. Hope to give me a chance. Regards.

£15 GBP trong 7 ngày
(6 Nhận xét)
2.6
hlyadav

Hi, I am experienced .NET Developer. I have 8 years of experience in developing applications in .NET. I have build .NET applications in frameworks like ASP.NET Web Forms,ASP.NET MVC,ASP.NET WCF,ASP.NET WEB API,ASP.NET Thêm

£15 GBP trong 7 ngày
(1 Nhận xét)
1.0
suhasbedare

Hi, I've done similar projects in past and I definitely help you to get resolved your problem with noninteractive sessions.

£15 GBP trong 2 ngày
(0 Nhận xét)
0.0