Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
2.8 KiB

  1. /****************************************************************************/
  2. /* acaapi.h */
  3. /* */
  4. /* RDP Control arbitrator API include file */
  5. /* */
  6. /* Copyright(c) Microsoft, PictureTel 1993-1997 */
  7. /* Copyright(c) Microsoft 1997-1999 */
  8. /****************************************************************************/
  9. #ifndef _H_ACAAPI
  10. #define _H_ACAAPI
  11. #define CA_EVENT_CANT_CONTROL 6
  12. #define CA_EVENT_BEGIN_UNATTENDED 8
  13. #define CA_EVENT_OLD_UNATTENDED 9
  14. #define CA_EVENT_TAKE_CONTROL 50
  15. #define CA_EVENT_COOPERATE_CONTROL 51
  16. #define CA_EVENT_DETACH_CONTROL 52
  17. #define CA_SEND_EVENT (unsigned)1
  18. #define CA_ALLOW_EVENT (unsigned)2
  19. #define CA_GIVE_MOUSE_TO_CA 1
  20. #define CA_GIVE_MOUSE_TO_CM 2
  21. #define CA_DISCARD_MOUSE 3
  22. #define CA_LOCAL_KEYBOARD_DOWN 1
  23. #define CA_LOCAL_KEYBOARD_UP 2
  24. /****************************************************************************/
  25. /* CA internal events */
  26. /****************************************************************************/
  27. #define CA_EVENTI_REQUEST_CONTROL 10
  28. #define CA_EVENTI_TRY_GIVE_CONTROL 11
  29. #define CA_EVENTI_GIVEN_CONTROL 12
  30. #define CA_EVENTI_GRANTED_CONTROL 13
  31. #define CA_EVENTI_ENTER_DETACHED_MODE 14
  32. #define CA_EVENTI_ENTER_COOP_MODE 15
  33. #define CA_EVENTI_ENTER_CONTROL_MODE 16
  34. #define CA_EVENTI_ENTER_VIEWING_MODE 17
  35. #define CA_EVENTI_REMOTE_DETACH 18
  36. #define CA_EVENTI_REMOTE_COOPERATE 19
  37. #define CA_EVENTI_SHARE_START 20
  38. #define CA_EVENTI_GRAB_CONTROL 24
  39. #define CA_STATE_DETACHED 1
  40. #define CA_STATE_IN_CONTROL 2
  41. #define CA_STATE_VIEWING 3
  42. #define CA_DONT_SEND_MSG 1
  43. /****************************************************************************/
  44. /* Special message code for CAFlushAndSendMsg */
  45. /****************************************************************************/
  46. #define CA_NO_MESSAGE 0
  47. /****************************************************************************/
  48. /* TYPEDEFS */
  49. /****************************************************************************/
  50. // Holds message info waiting to be sent.
  51. typedef struct tagCAMSGDATA {
  52. BOOLEAN pending;
  53. UINT16 grantId;
  54. UINT32 controlId;
  55. } CAMSGDATA, *PCAMSGDATA;
  56. #endif /* _H_ACAAPI */