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.

121 lines
2.7 KiB

  1. #ifndef _IMCSAPP_H_
  2. #define _IMCSAPP_H_
  3. #include <basetyps.h>
  4. #include "mcatmcs.h"
  5. #define MCSAPI_(_type_) virtual _type_ __stdcall
  6. #define MCSAPI MCSAPI_(MCSError)
  7. #define ATTACHMENT_DISCONNECT_IN_DATA_LOSS 0x1
  8. #define ATTACHMENT_MCS_FREES_DATA_IND_BUFFER 0x2
  9. #undef INTERFACE
  10. #define INTERFACE IMCSSap
  11. DECLARE_INTERFACE(IMCSSap)
  12. {
  13. STDMETHOD_(MCSError, ReleaseInterface) (THIS) PURE;
  14. /* memory calls */
  15. STDMETHOD_(MCSError, GetBuffer) (THIS_
  16. IN UINT,
  17. OUT PVoid *)
  18. PURE;
  19. STDMETHOD_(Void, FreeBuffer) (THIS_
  20. IN PVoid)
  21. PURE;
  22. // channel request calls
  23. STDMETHOD_(MCSError, ChannelJoin) (THIS_
  24. IN ChannelID)
  25. PURE;
  26. STDMETHOD_(MCSError, ChannelLeave) (THIS_
  27. IN ChannelID)
  28. PURE;
  29. STDMETHOD_(MCSError, ChannelConvene) (THIS)
  30. PURE;
  31. STDMETHOD_(MCSError, ChannelDisband) (THIS_
  32. IN ChannelID)
  33. PURE;
  34. STDMETHOD_(MCSError, ChannelAdmit) (THIS_
  35. IN ChannelID,
  36. IN PUserID,
  37. IN UINT)
  38. PURE;
  39. /* send data services */
  40. STDMETHOD_(MCSError, SendData) (THIS_
  41. IN DataRequestType,
  42. IN ChannelID,
  43. IN Priority,
  44. IN unsigned char *,
  45. IN ULong,
  46. IN SendDataFlags)
  47. PURE;
  48. /* token services */
  49. STDMETHOD_(MCSError, TokenGrab) (THIS_
  50. IN TokenID)
  51. PURE;
  52. STDMETHOD_(MCSError, TokenInhibit) (THIS_
  53. IN TokenID)
  54. PURE;
  55. STDMETHOD_(MCSError, TokenGive) (THIS_
  56. IN TokenID,
  57. IN UserID)
  58. PURE;
  59. STDMETHOD_(MCSError, TokenGiveResponse) (THIS_
  60. IN TokenID,
  61. IN Result)
  62. PURE;
  63. STDMETHOD_(MCSError, TokenPlease) (THIS_
  64. IN TokenID)
  65. PURE;
  66. STDMETHOD_(MCSError, TokenRelease) (THIS_
  67. IN TokenID)
  68. PURE;
  69. STDMETHOD_(MCSError, TokenTest) (THIS_
  70. IN TokenID)
  71. PURE;
  72. };
  73. typedef IMCSSap * PIMCSSap;
  74. //
  75. // GCC Application Service Access Point exports
  76. //
  77. #ifdef __cplusplus
  78. extern "C" {
  79. #endif
  80. MCSError WINAPI MCS_AttachRequest(
  81. OUT IMCSSap **,
  82. IN DomainSelector,
  83. IN UINT,
  84. IN MCSCallBack,
  85. IN PVoid,
  86. IN UINT);
  87. #ifdef __cplusplus
  88. }
  89. #endif
  90. #endif // _IMCSAPP_H_