Source code of Windows XP (NT5)
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.

66 lines
2.1 KiB

  1. // nmremote.h
  2. // Contains data structures and declarations shared by NetMeeting and
  3. // the remote control service
  4. // String for identifying remote control service.
  5. #define REMOTE_CONTROL_NAME TEXT("mnmsrvc")
  6. #ifdef DATA_CHANNEL
  7. // GUID for the remote control data channel
  8. // {B983C6DA-459A-11d1-8735-0000F8757125}
  9. const GUID g_guidRemoteControl =
  10. { 0xb983c6da, 0x459a, 0x11d1, { 0x87, 0x35, 0x0, 0x0, 0xf8, 0x75, 0x71, 0x25 } };
  11. const UINT RC_CAP_DESKTOP = 0x00000001;
  12. typedef UINT RC_CAP_DATA;
  13. #endif // DATA_CHANNEL
  14. #ifdef DATA_CHANNEL
  15. // Declarations for the remote control data channel protocol
  16. typedef enum {
  17. RC_SENDCTRLALTDEL = 0,
  18. #ifdef RDS_AV
  19. RC_STARTAUDIO = 1,
  20. RC_STOPAUDIO = 2,
  21. RC_STARTVIDEO = 3,
  22. RC_STOPVIDEO = 4
  23. #endif // RDS_AV
  24. } RC_COMMAND;
  25. typedef struct tagRCDATA {
  26. DWORD magic; // magic number
  27. DWORD command; // which command
  28. DWORD size; // size of data afterwards
  29. } RCDATA;
  30. // Constants for use in parsing incoming data
  31. const int RC_DATAMINSIZE = sizeof(RCDATA); // minimum size for a data packet = size of the header
  32. const DWORD RC_DATAMAGIC = 0x03271943; // magic number to identify packets
  33. const int RC_DATAMAGICOFFSET = 0;
  34. const int RC_DATACMDOFFSET = sizeof(DWORD);
  35. const int RC_DATABUFFEROFFSET = RC_DATACMDOFFSET + sizeof(DWORD);
  36. #endif // DATA_CHANNEL;
  37. // Application name for Win95 service
  38. #define WIN95_SERVICE_APP_NAME TEXT("mnmsrvc.exe")
  39. #define REMOTE_CONTROL_DISPLAY_NAME TEXT("NetMeeting Remote Desktop Sharing")
  40. #define SZRDSGROUP "NetMeeting RDS Users"
  41. // Remote Control Conference Descriptor
  42. #define RDS_CONFERENCE_DESCRIPTOR L"0xb983c6da459a11d1873500f8757125"
  43. // Strings for events used for communication between NetMeeting and the service
  44. #define SERVICE_STOP_EVENT TEXT("RDS:Stop")
  45. #define SERVICE_PAUSE_EVENT TEXT("RDS:Pause")
  46. #define SERVICE_CONTINUE_EVENT TEXT("RDS:Continue")
  47. #define SERVICE_ACTIVE_EVENT TEXT("RDS:Active")
  48. #define SERVICE_CALL_EVENT TEXT("RDS:Call")
  49. // BUGBUG 03-02-98
  50. // These string constants are copied from ui\conf\ipcpriv.h
  51. const char g_szConfInit[] = _TEXT("CONF:Init");
  52. const char g_szConfShuttingDown[] = _TEXT("CONF:ShuttingDown");