COM application launching as different user in terminal server

Anshul Mittal 201 Reputation points
2021-03-18T10:46:30.913+00:00

This issue is specific to terminal server only. I have 2 applications (both COM exe's) 1 implemented as singleton and launches as administrator everytime correctly. The application 1 launches second application using CLSCTX_LOCAL_SERVER. The issue is that the application 2 is launched as the first user(User2) who launched the application 1. Example : there are 3 users (User1 (administrator), User2, User3). I launch app1 from User2 which launches app correctly but second time when i try to launch from user3 the app2 still launches as User1 instead of User2.

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,707 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,824 questions
{count} votes

Your answer

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