Ajinkya
Ajinkya

Reputation: 89

Win32 Error System.Runtime.InteropServices.SEHException when using CreateProcessAsUser in C# Windows Service

I'm working on a C# application on Windows 11 (version 23H2) that aims to create a user session (remote desktop session) from a Windows service. The goal is to launch an application within that session and then terminate the session.

Here's where I'm encountering issues:

APIs Used:

Errors:

What I Expected:

CreateProcessAsUser to successfully launch the specified application (Calculator or Notepad) within the newly created user session.

Upvotes: 0

Views: 84

Answers (0)

Related Questions