0

I have a desktop sharing WinForm application using RDPSession, it works well and client app can connect it via AxRDPViewer.

But after I change the sharing application type to Windows Service, the client app can only see a black screen of the sharer, like this screen shot

So I want to know if RDPSession can work in a Windows Service app ? Any suggestions?

Thanks for your comments.

RickSu
  • 1
  • 2
  • 1
    It cannot, because Services run in another [WindowsStation](https://learn.microsoft.com/en-us/windows/win32/winstation/window-stations?redirectedfrom=MSDN) and thus cannot interact with the desktop directly – MindSwipe Jun 05 '20 at 09:26
  • This [RDPSession](https://learn.microsoft.com/en-us/previous-versions/windows/desktop/rdp/rdpsession)? The one that says `desktop apps | UWP apps` as the supported platforms? – Damien_The_Unbeliever Jun 05 '20 at 09:27
  • Hi MindSwipe , thanks for your answer! And I noticed in the service property, there is an option, 'permit to interact with desktop', what does this mean ? – RickSu Jun 05 '20 at 09:37
  • see also: https://stackoverflow.com/a/4237283/578411 – rene Jun 05 '20 at 09:37
  • OK, I see, thanks @rene – RickSu Jun 05 '20 at 09:48

0 Answers0