C# console app that returns all processes for all users where MainWindowhandle != 0
Ngân sách £10-20 GBP
- Freelancer
- Các công việc
- Lập trình C#
- 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?
6 freelancer chào giá trung bình£44 cho công việc này
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
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
I have C# AND C++ programing export. I can carry out your project as you want. Hope to give me a chance. Regards.
Hi, I've done similar projects in past and I definitely help you to get resolved your problem with noninteractive sessions.