COM Singleton in terminal server

Anshul Mittal 201 Reputation points
2021-03-22T08:18:37.737+00:00

I have a COM singleton exe which is started as administrator. The exe is responsible to launch another exe (COM exe) with UserName (in task manager) same as the user requesting to launch the exe. This works fine in remote desktop services but in terminal server it launches as the first user launching the exe 2. (i.e. if user1 requested singleton to launch COM exe it launches as user1. After this if user 2 requests to launch exe it launches again as User1 even though User2 requested it.).

Note that it works absolutely fine in remote desktop services but is errornous in terminal server only.

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,413 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,513 questions
{count} votes