Exe's GUI not visible in Remote Access
-
Hi, From a CPP program, I am creating a service. And from that service I am invoking an exe with CreateProcess function. The problem here is that, when that service is started locally then the exe's GUI is visble. But if the service is started from the machine thru remotedesktop connection, the exe's GUI is not visible. But I can see the exe process in task manager. Please help me in this regards. Thanks in advance. Surendran
-
Hi, From a CPP program, I am creating a service. And from that service I am invoking an exe with CreateProcess function. The problem here is that, when that service is started locally then the exe's GUI is visble. But if the service is started from the machine thru remotedesktop connection, the exe's GUI is not visible. But I can see the exe process in task manager. Please help me in this regards. Thanks in advance. Surendran
Hi, If it is a service, then it is executed in local session, which is different from the one that you're operating. You have to attach your service desktop to the one you're going to display GUI on. AFAIK, there's no way to attach your GUI to something like "global" desktop so it would be visible for all. Only one desktop can be attached at once. I suggest, creating GUI as client app and use IPC to speak with your service. This way, your GUI may have access to the service from multiple desktops at once. use sockets, shared memory or pipes for IPC (shmem or pipe should be created in global namespace). Regards