Click here to Skip to main content
15,881,559 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
Hi,
I need to implement curtain mode during remote desktop control. Whenever admin take control of a remote machine, local display should be curtained so that local user can't see what admin is doing. Is there any way this can be implemented in C# or C++

Thanks

What I have tried:

I have searched in google but unable to get any solution.
Posted
Updated 10-May-17 20:16pm

1 solution

Hi,

1.) Create a program that can create a fullscreen black window. Add some code that utilizes the WTSRegisterSessionNotificationEx [^] function to receive session change notifications. When your program receives the WM_WTSSESSION_CHANGE message[^] then show the black window when WPARAM is equal to WTS_SESSION_REMOTE_CONTROL (0x9)
2.) Launch the program from a service such as this one: Start Your Windows Programs From An NT Service[^].

Best Wishes,
-David Delaune
 
Share this answer
 
v2
Comments
Member 2006196 13-Jun-17 21:28pm    
Thanks David. Actually we are using VNC RFB (remote framebuffer) protocol for remote control. Will this approach work for RFB also or its related to RDP protocol.
Thanks in advance.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900