nmapptyp.h 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. //****************************************************************************
  2. // Module: SDK
  3. // File: NMAPPTYP.H
  4. // Content:
  5. //
  6. //
  7. // Copyright (c) Microsoft Corporation 1999-2002
  8. //
  9. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  10. // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  11. // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  12. // PARTICULAR PURPOSE.
  13. //****************************************************************************
  14. #if ! defined(_NM_APPLET_TYPE_H_) && ! defined(__iapplet_h__)
  15. #define _NM_APPLET_TYPE_H_
  16. //
  17. // GCC/MCS Base Types
  18. //
  19. typedef USHORT AppletSessionID;
  20. typedef USHORT AppletChannelID;
  21. typedef AppletChannelID AppletUserID;
  22. typedef AppletUserID AppletNodeID;
  23. typedef USHORT AppletTokenID;
  24. typedef USHORT AppletEntityID;
  25. typedef ULONG AppletConfID;
  26. typedef UINT AppletRequestTag;
  27. //
  28. // GCC Registry
  29. //
  30. typedef enum tagAppletRegistryCommand
  31. {
  32. APPLET_REGISTER_CHANNEL = 0,
  33. APPLET_ASSIGN_TOKEN = 1,
  34. APPLET_SET_PARAMETER = 2,
  35. APPLET_RETRIEVE_ENTRY = 3,
  36. APPLET_DELETE_ENTRY = 4,
  37. APPLET_ALLOCATE_HANDLE = 5,
  38. APPLET_MONITOR = 6, // nyi in SDK
  39. }
  40. AppletRegistryCommand;
  41. typedef enum tagAppletRegistryItemType
  42. {
  43. APPLET_REGISTRY_CHANNEL_ID = 1,
  44. APPLET_REGISTRY_TOKEN_ID = 2,
  45. APPLET_REGISTRY_PARAMETER = 3,
  46. APPLET_REGISTRY_NONE = 4,
  47. }
  48. AppletRegistryItemType;
  49. typedef enum tagAppletModificationRights
  50. {
  51. APPLET_OWNER_RIGHTS = 0,
  52. APPLET_SESSION_RIGHTS = 1,
  53. APPLET_PUBLIC_RIGHTS = 2,
  54. APPLET_NO_MODIFICATION_RIGHTS_SPECIFIED = 3,
  55. }
  56. AppletModificationRights;
  57. //
  58. // MCS Channel
  59. //
  60. typedef enum tagAppletChannelCommand
  61. {
  62. APPLET_JOIN_CHANNEL = 0,
  63. APPLET_LEAVE_CHANNEL = 1,
  64. APPLET_CONVENE_CHANNEL = 2,
  65. APPLET_DISBAND_CHANNEL = 3,
  66. APPLET_ADMIT_CHANNEL = 4,
  67. APPLET_EXPEL_CHANNEL = 5, // indication only
  68. }
  69. AppletChannelCommand;
  70. typedef enum tagAppletChannelType
  71. {
  72. APPLET_STATIC_CHANNEL = 0,
  73. APPLET_DYNAMIC_MULTICAST_CHANNEL = 1,
  74. APPLET_DYNAMIC_PRIVATE_CHANNEL = 2,
  75. APPLET_DYNAMIC_USER_ID_CHANNEL = 3,
  76. APPLET_NO_CHANNEL_TYPE_SPECIFIED = 4
  77. }
  78. AppletChannelType;
  79. //
  80. // MCS Token
  81. //
  82. typedef enum tagAppletTokenCommand
  83. {
  84. APPLET_GRAB_TOKEN = 0,
  85. APPLET_INHIBIT_TOKEN = 1,
  86. APPLET_GIVE_TOKEN = 2,
  87. APPLET_PLEASE_TOKEN = 3,
  88. APPLET_RELEASE_TOKEN = 4,
  89. APPLET_TEST_TOKEN = 5,
  90. APPLET_GIVE_TOKEN_RESPONSE = 6,
  91. }
  92. AppletTokenCommand;
  93. typedef enum tagAppletTokenStatus
  94. {
  95. APPLET_TOKEN_NOT_IN_USE = 0,
  96. APPLET_TOKEN_SELF_GRABBED = 1,
  97. APPLET_TOKEN_OTHER_GRABBED = 2,
  98. APPLET_TOKEN_SELF_INHIBITED = 3,
  99. APPLET_TOKEN_OTHER_INHIBITED = 4,
  100. APPLET_TOKEN_SELF_RECIPIENT = 5,
  101. APPLET_TOKEN_SELF_GIVING = 6,
  102. APPLET_TOKEN_OTHER_GIVING = 7,
  103. }
  104. AppletTokenStatus;
  105. //
  106. // GCC Capability
  107. //
  108. typedef enum tagAppletCapabilityType
  109. {
  110. APPLET_UNKNOWN_CAP_TYPE = 0, // for non-collapsing caps
  111. APPLET_LOGICAL_CAPABILITY = 1,
  112. APPLET_UNSIGNED_MINIMUM_CAPABILITY = 2,
  113. APPLET_UNSIGNED_MAXIMUM_CAPABILITY = 3,
  114. }
  115. AppletCapabilityType;
  116. typedef struct tagAppletCapabilityClass
  117. {
  118. AppletCapabilityType eType;
  119. ULONG nMinOrMax;
  120. }
  121. AppletCapabilityClass;
  122. typedef enum tagAppletCapIDType
  123. {
  124. APPLET_STANDARD_CAPABILITY = 0,
  125. APPLET_NONSTD_CAPABILITY = 1,
  126. }
  127. AppletCapIDType;
  128. //
  129. // GCC/MCS Resource Allocation Command
  130. //
  131. typedef enum tagAppletResourceAllocCommand
  132. {
  133. APPLET_JOIN_DYNAMIC_CHANNEL = 0, // compete among all members
  134. APPLET_GRAB_TOKEN_REQUEST = 1, // nyi in SDK
  135. }
  136. AppletResourceAllocCommand;
  137. //
  138. // Send Data
  139. //
  140. typedef enum tagAppletPriority
  141. {
  142. APPLET_TOP_PRIORITY = 0,
  143. APPLET_HIGH_PRIORITY = 1,
  144. APPLET_MEDIUM_PRIORITY = 2,
  145. APPLET_LOW_PRIORITY = 3,
  146. }
  147. AppletPriority;
  148. //
  149. // Key Type
  150. //
  151. typedef enum tagAppletKeyType
  152. {
  153. APPLET_OBJECT_KEY = 1,
  154. APPLET_H221_NONSTD_KEY = 2,
  155. }
  156. AppletKeyType;
  157. //
  158. // Error Code
  159. //
  160. enum tagAppletErrorCode
  161. {
  162. APPLET_E_NO_SERVICE = 0x82000001,
  163. APPLET_E_SERVICE_FAIL = 0x82000002,
  164. APPLET_E_ALREADY_REGISTERED = 0x82000003,
  165. APPLET_E_NOT_REGISTERED = 0x82000004,
  166. APPLET_E_INVALID_CONFERENCE = 0x82000005,
  167. APPLET_E_INVALID_COOKIE = 0x82000006,
  168. APPLET_E_ALREADY_JOIN = 0x82000007,
  169. APPLET_E_NOT_JOINED = 0x82000008,
  170. APPLET_E_INVALID_JOIN_REQUEST = 0x82000009,
  171. APPLET_E_ENTRY_ALREADY_EXISTS = 0x8200000a,
  172. APPLET_E_ENTRY_DOES_NOT_EXIST = 0x8200000b,
  173. APPLET_E_NOT_OWNER = 0x8200000c,
  174. APPLET_E_NOT_ADVISED = 0x8200000d,
  175. APPLET_E_ALREADY_ADVISED = 0x8200000e,
  176. };
  177. //
  178. // Reason Code
  179. //
  180. typedef enum tagAppletReason
  181. {
  182. APPLET_R_UNSPECIFIED = 0,
  183. APPLET_R_CONFERENCE_GONE = 1,
  184. APPLET_R_USER_REJECTED = 2,
  185. APPLET_R_RESOURCE_PURGED = 3,
  186. }
  187. AppletReason;
  188. #endif // _NM_APPLET_BASE_H_