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.

77 lines
2.7 KiB

  1. //
  2. // MCSHELP.H
  3. // MCS Helper functions
  4. //
  5. // Copyright Microsoft 1998-
  6. //
  7. #include "imcsapp.h"
  8. #include "mcatmcs.h" // For MAX_MCS_DATA_SIZE
  9. #define _MAX_MCS_MESSAGE_SIZE 64000
  10. #define _MAX_MCS_PDU_SIZE MAX_MCS_DATA_SIZE
  11. #define ObjectIDNode unsigned long
  12. // From T120 recomendation
  13. #define _SI_CHANNEL_0 8
  14. #define _SI_BITMAP_CREATE_TOKEN 8
  15. #define _SI_WORKSPACE_REFRESH_TOKEN 9
  16. //Default values
  17. #define INVALID_SAMPLE_RATE - 1
  18. // Prototypes
  19. BOOL T126_MCSSendDataIndication(ULONG uSize, LPBYTE pb, ULONG memberID, BOOL bResend);
  20. BOOL AddT126ObjectToWorkspace(T126Obj *pObj);
  21. UINT AllocateFakeGCCHandle(void);
  22. void SetFakeGCCHandle(UINT fakeHandle);
  23. WorkspaceObj * GetWorkspace(UINT activeWorkspace);
  24. BOOL FindObjectAndWorkspace(UINT objectHandle, T126Obj** pObj, WorkspaceObj** pWorkspace);
  25. //
  26. // From transport to UI
  27. //
  28. //
  29. // DrawingPDUs
  30. //
  31. void OnDrawingCreatePDU(DrawingCreatePDU * pdrawingCreatePDU, ULONG memberID, BOOL bResend);
  32. void OnDrawingEditPDU(DrawingEditPDU * pdrawingEditPDU, ULONG memberID, BOOL bResend);
  33. void OnDrawingDeletePDU(DrawingDeletePDU * pdrawingDeletePDU, ULONG memberID);
  34. //
  35. // TextPDUs
  36. //
  37. void OnTextCreatePDU(MSTextPDU* pCreatePDU, ULONG memberID, BOOL bForcedResend);;
  38. void OnTextEditPDU(MSTextPDU *pEditPDU, ULONG memberID);
  39. void OnTextDeletePDU(TEXTPDU_HEADER *pHeader, ULONG memberID);
  40. //
  41. // WorkspacePDUs
  42. //
  43. void OnWorkspaceCreatePDU(WorkspaceCreatePDU * pWorkspaceCreatePDU, ULONG memberID, BOOL bResend);
  44. void OnWorkspaceCreateAcknowledgePDU(WorkspaceCreateAcknowledgePDU * pWorkspaceCreateAcknowledgePDU, ULONG memberID);
  45. void OnWorkspaceDeletePDU(WorkspaceDeletePDU * pWorkspaceDeletePDU, ULONG memberID);
  46. void OnWorkspaceEditPDU(WorkspaceEditPDU * pWorkspaceEditPDU, ULONG memberID);
  47. void OnWorkspacePlaneCopyPDU(WorkspacePlaneCopyPDU * pWorkspacePlaneCopyPDU, ULONG memberID);
  48. void OnWorkspaceReadyPDU(WorkspaceReadyPDU * pWorkspaceReadyPDU, ULONG memberID);
  49. void OnWorkspaceRefreshStatusPDU(WorkspaceRefreshStatusPDU * pWorkspaceRefreshStatusPDU, ULONG memberID);
  50. //
  51. // BitmapPDUs
  52. //
  53. void OnBitmapCreatePDU(BitmapCreatePDU * pBitmapCreatePDU, ULONG memberID, BOOL bResend);
  54. void OnBitmapCreateContinuePDU(BitmapCreateContinuePDU * pBitmapCreateContinuePDU, ULONG memberID, BOOL bForcedResend);
  55. void OnBitmapCheckpointPDU(BitmapCheckpointPDU * pBitmapCheckPointPDU, ULONG memberID);
  56. void OnBitmapAbortPDU(BitmapAbortPDU * pBitmapAbortPDU, ULONG memberID);
  57. void OnBitmapEditPDU(BitmapEditPDU * pBitmapEditPDU, ULONG memberID);
  58. void OnBitmapDeletePDU(BitmapDeletePDU * pBitmapDeletePDU, ULONG memberID);
  59. void DeleteAllWorkspaces(BOOL sendPDU);
  60. void RetrySend(void);
  61. T120Error SendT126PDU(SIPDU * pPDU);
  62. T120Error SendPDU(SIPDU * pPDU, BOOL bRetry);
  63. void SIPDUCleanUp(SIPDU *sipdu);
  64. void DeleteAllRetryPDUS(void);