Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate


Paste Description for Chakkaradeep

My Code

Tuesday, June 5th, 2007 at 4:08:05pm UTC 

  1. In my WinSharer Application,
  3. private void OnAttendeeConnected(object pObjAttendee)
  4. {
  5.          IRDPSRAPIAttendee pAttendee = pObjAttendee as IRDPSRAPIAttendee;
  6.          pAttendee.ControlLevel = CTRL_LEVEL.CTRL_LEVEL_VIEW;
  7.          //MessageBox.Show(("Attendee Connected: " + pAttendee.RemoteName + Environment.NewLine));
  8. }
  10. void OnAttendeeDisconnected(object pDisconnectInfo)
  11. {
  12.             IRDPSRAPIAttendeeDisconnectInfo pDiscInfo = pDisconnectInfo as IRDPSRAPIAttendeeDisconnectInfo; 
  13. }
  15. void OnControlLevelChangeRequest(object pObjAttendee, CTRL_LEVEL RequestedLevel)
  16. {
  17.             IRDPSRAPIAttendee pAttendee = pObjAttendee as IRDPSRAPIAttendee;
  18.             pAttendee.ControlLevel = RequestedLevel;
  19. }
  21. And in the WinViewer,
  23. public void ControlDesktop(object sender, EventArgs e)
  24. {
  25.             desktopViewer.RequestControl(RDPCOMAPILib.CTRL_LEVEL.CTRL_LEVEL_INTERACTIVE);
  26. }
  28. The above is callback when the button ControlDesktop is clicked


Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)

Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus