Share via

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 development | Windows API - Win32
Developer technologies | C++
Developer technologies | 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.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.