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.

453 lines
9.9 KiB

  1. /*
  2. * This file is generated by the automatic RPC Parser generator. (Version 0.21)
  3. *
  4. * Created on 04/09/97 at 00:00:13.
  5. */
  6. #include "precomp.h"
  7. #pragma hdrstop
  8. /*
  9. * Names of Interfaces and Procedures
  10. */
  11. char InterfaceNames[NUM_INTERFACES][LOCAL_MAX_NAME_LENGTH] =
  12. {
  13. "IntraCluster", "ExtroCluster", "Clusapi", "JoinVersion"
  14. };
  15. //
  16. // to add a new procedure to the list:
  17. //
  18. // 1) insert the name at the appropriate spot in the list. RPC numbers
  19. // the routines based on their position in the list. The order in this
  20. // list must match the order in the .idl file. You must take into account
  21. // and #ifdefs that would affect the order.
  22. //
  23. // 2) As you can see, the list contains all names for the 3 interfaces. The
  24. // count of functions is in skeleton.h. Adjust the defined constant for the
  25. // interface that is changing.
  26. //
  27. char ProcedureNames[NUM_PROCEDURES][LOCAL_MAX_NAME_LENGTH] =
  28. {
  29. "FmsQueryOwnedGroups", // Intracluster
  30. "FmsOnlineGroupRequest",
  31. "FmsOfflineGroupRequest",
  32. "FmsMoveGroupRequest",
  33. "FmsTakeGroupRequest",
  34. "FmsOnlineResourceRequest",
  35. "FmsOfflineResourceRequest",
  36. "FmsChangeResourceNode",
  37. "FmsArbitrateResource",
  38. "FmsFailResource",
  39. "FmsCreateResource",
  40. "FmsDeleteResource",
  41. "FmsQuoNodeOnlineResource",
  42. "FmsQuoNodeOfflineResource",
  43. "FmsRmOnlineResource",
  44. "FmsRmOfflineResource",
  45. "FmsResourceControl",
  46. "FmsResourceTypeControl",
  47. "FmsGroupControl",
  48. "FmsPrepareQuorumResChange",
  49. "FmsCompleteQuorumResChange",
  50. "GumQueueLockingUpdate",
  51. "GumAttemptJoinUpdate",
  52. "GumUnlockUpdate",
  53. "GumUpdateNode",
  54. "GumJoinUpdateNode",
  55. "GumGetNodeSequence",
  56. "MmRpcMsgSend",
  57. "MmRpcEstablishSecurityContext",
  58. "MmRpcDeleteSecurityContext",
  59. "MmRpcBanishNode",
  60. "NmRpcCreateJoinerBinding",
  61. "NmRpcDeliverJoinMessage",
  62. "CpDepositCheckpoint",
  63. "CpRetrieveCheckpoint",
  64. "EvPropEvents",
  65. "CpDeleteCheckpoint",
  66. "GumAttemptLockingUpdate",
  67. "GumCollectVoteFromNode",
  68. "NmRpcReportInterfaceConnectivity",
  69. "NmRpcGetInterfaceOnlineAddressEnum",
  70. "NmRpcGetInterfacePingAddressEnum",
  71. "NmRpcDoInterfacePing",
  72. "FmsBackupClusterDatabase",
  73. "FmsChangeResourceGroup",
  74. "FmsDeleteGroupRequest",
  75. "CpDepositCryptoCheckpoint",
  76. "CpRetrieveCryptoCheckpoint",
  77. "CpDeleteCryptoCheckpoint",
  78. "FmsAddResourceDependency",
  79. "FmsRemoveResourceDependency",
  80. "NmRpcAddNode",
  81. "NmRpcEnumNodeDefinitions", // start of ExtroCluster
  82. "NmRpcEnumNetworkDefinitions",
  83. "NmRpcEnumInterfaceDefinitions",
  84. "NmRpcCreateNetwork",
  85. "NmRpcCreateInterface",
  86. "NmRpcSetInterfaceInfo",
  87. "NmRpcDeleteInterface",
  88. "NmRpcJoinBegin",
  89. "NmRpcCreateBinding",
  90. "NmRpcPetitionForMembership",
  91. "JoinAddNode",
  92. "DmSyncDatabase",
  93. "TestRPCSecurity",
  94. "NmRpcJoinBegin2",
  95. "JoinAddNode2",
  96. "NmRpcEnumNodeDefinitions2",
  97. "NmRpcEnumInterfaceDefinitions2",
  98. "NmRpcCreateNetwork2",
  99. "NmRpcCreateInterface2",
  100. "NmRpcSetInterfaceInfo2",
  101. "NmRpcSetNetworkName",
  102. "NmRpcReportJoinerInterfaceConnectivity",
  103. "NmRpcEnumNetworkAndInterfaceStates",
  104. "NmRpcGetLeaderNodeId",
  105. "JoinAddNode3",
  106. "NmRpcJoinBegin3",
  107. "ApiOpenCluster", // start of clusapi
  108. "ApiCloseCluster",
  109. "ApiSetClusterName",
  110. "ApiGetClusterName",
  111. "ApiGetClusterVersion",
  112. "ApiGetQuorumResource",
  113. "ApiSetQuorumResource",
  114. "ApiCreateEnum",
  115. "ApiOpenResource",
  116. "ApiCreateResource",
  117. "ApiDeleteResource",
  118. "ApiCloseResource",
  119. "ApiGetResourceState",
  120. "ApiSetResourceName",
  121. "ApiGetResourceId",
  122. "ApiGetResourceType",
  123. "ApiFailResource",
  124. "ApiOnlineResource",
  125. "ApiOfflineResource",
  126. "ApiAddResourceDependency",
  127. "ApiRemoveResourceDependency",
  128. "ApiCanResourceBeDependent",
  129. "ApiCreateResEnum",
  130. "ApiAddResourceNode",
  131. "ApiRemoveResourceNode",
  132. "ApiChangeResourceGroup",
  133. "ApiCreateResourceType",
  134. "ApiDeleteResourceType",
  135. "ApiGetRootKey",
  136. "ApiCreateKey",
  137. "ApiOpenKey",
  138. "ApiEnumKey",
  139. "ApiSetValue",
  140. "ApiDeleteValue",
  141. "ApiQueryValue",
  142. "ApiDeleteKey",
  143. "ApiEnumValue",
  144. "ApiCloseKey",
  145. "ApiQueryInfoKey",
  146. "ApiSetKeySecurity",
  147. "ApiGetKeySecurity",
  148. "ApiOpenGroup",
  149. "ApiCreateGroup",
  150. "ApiDeleteGroup",
  151. "ApiCloseGroup",
  152. "ApiGetGroupState",
  153. "ApiSetGroupName",
  154. "ApiGetGroupId",
  155. "ApiGetNodeId",
  156. "ApiOnlineGroup",
  157. "ApiOfflineGroup",
  158. "ApiMoveGroup",
  159. "ApiMoveGroupToNode",
  160. "ApiCreateGroupResourceEnum",
  161. "ApiSetGroupNodeList",
  162. "ApiCreateNotify",
  163. "ApiCloseNotify",
  164. "ApiAddNotifyCluster",
  165. "ApiAddNotifyNode",
  166. "ApiAddNotifyGroup",
  167. "ApiAddNotifyResource",
  168. "ApiAddNotifyKey",
  169. "ApiReAddNotifyNode",
  170. "ApiReAddNotifyGroup",
  171. "ApiReAddNotifyResource",
  172. "ApiGetNotify",
  173. "ApiOpenNode",
  174. "ApiCloseNode",
  175. "ApiGetNodeState",
  176. "ApiPauseNode",
  177. "ApiResumeNode",
  178. "ApiEvictNode",
  179. "ApiNodeResourceControl",
  180. "ApiResourceControl",
  181. "ApiNodeResourceTypeControl",
  182. "ApiResourceTypeControl",
  183. "ApiNodeGroupControl",
  184. "ApiGroupControl",
  185. "ApiNodeNodeControl",
  186. "ApiNodeControl",
  187. "ApiEvPropEvents",
  188. "ApiOpenNetwork",
  189. "ApiCloseNetwork",
  190. "ApiGetNetworkState",
  191. "ApiSetNetworkName",
  192. "ApiCreateNetworkEnum",
  193. "ApiGetNetworkId",
  194. "ApiSetNetworkPriorityOrder",
  195. "ApiNodeNetworkControl",
  196. "ApiNetworkControl",
  197. "ApiAddNotifyNetwork",
  198. "ApiReAddNotifyNetwork",
  199. "ApiOpenNetInterface",
  200. "ApiCloseNetInterface",
  201. "ApiGetNetInterfaceState",
  202. "ApiGetNetInterface",
  203. "ApiGetNetInterfaceId",
  204. "ApiNodeNetInterfaceControl",
  205. "ApiNetInterfaceControl",
  206. "ApiAddNotifyNetInterface",
  207. "ApiReAddNotifyNetInterface",
  208. "ApiCreateNodeEnum",
  209. "ApiGetClusterVersion2",
  210. "ApiCreateResTypeEnum",
  211. "ApiBackupClusterDatabase",
  212. "ApiNodeClusterControl",
  213. "ApiClusterControl",
  214. "CsRpcGetJoinVersionData" // start of JoinVersion
  215. };
  216. WORD ProcedureNameIndex[NUM_INTERFACES] =
  217. {
  218. 0,
  219. NUM_INTRACLUSTERPROCS,
  220. NUM_INTRACLUSTERPROCS + NUM_EXTROCLUSTERPROCS,
  221. NUM_INTRACLUSTERPROCS + NUM_EXTROCLUSTERPROCS + NUM_CLUSAPIPROCS
  222. };
  223. WORD FirstProcedureNumber[NUM_INTERFACES] =
  224. {
  225. 0, 0, 0, 0
  226. };
  227. /*
  228. * Property databases for interface IntraCluster
  229. */
  230. PROPERTYINFO IntraCluster_GenProps[] =
  231. {
  232. { /* GENPROP_SUMMARY */
  233. 0, 0,
  234. "Summary",
  235. "Intracluster RPC call Summary.",
  236. PROP_TYPE_SUMMARY,
  237. PROP_QUAL_NONE,
  238. 0, 200,
  239. GenericFormatSummary
  240. },
  241. { /* GENPROP_ERROR_BAD_OPCODE */
  242. 0, 0,
  243. "Error: Bad Opcode (Function does not exist)",
  244. "The procedure indicated does not exist.",
  245. PROP_TYPE_SUMMARY,
  246. PROP_QUAL_NONE,
  247. 0, 80,
  248. FormatPropertyInstance
  249. },
  250. { /* GENPROP_CALLNAME */
  251. 0, 0,
  252. "RPC Interface Name",
  253. "RPC Interface Name.",
  254. PROP_TYPE_STRING,
  255. PROP_QUAL_NONE,
  256. 0, 100,
  257. FormatPropertyInstance
  258. },
  259. { /* GENPROP_ENCRYPTED */
  260. 0, 0,
  261. "Encrypted RPC Call",
  262. "This RPC Data is Encrypted",
  263. PROP_TYPE_SUMMARY,
  264. PROP_QUAL_NONE,
  265. 0, 100,
  266. FormatPropertyInstance
  267. },
  268. };
  269. DWORD nIntraClusterGenProps = ((sizeof IntraCluster_GenProps) / PROPERTYINFO_SIZE);
  270. PROPERTYINFO IntraCluster_PrivProps[] =
  271. {
  272. { /* GENPROP_SEQNUMBER */
  273. 0, 0,
  274. "GUM Sequence Number",
  275. "GUM Sequence Number.",
  276. PROP_TYPE_DWORD,
  277. PROP_QUAL_NONE,
  278. 0, 100,
  279. FormatPropertyInstance
  280. },
  281. };
  282. DWORD nIntraClusterPrivProps = ((sizeof IntraCluster_PrivProps) / PROPERTYINFO_SIZE);
  283. /*
  284. * Property database for interface ExtroCluster
  285. */
  286. PROPERTYINFO ExtroCluster_GenProps[] =
  287. {
  288. /* Default properties */
  289. { /* GENPROP_SUMMARY */
  290. 0, 0,
  291. "Summary",
  292. "ExtroCluster RPC Call Summary.",
  293. PROP_TYPE_SUMMARY,
  294. PROP_QUAL_NONE,
  295. 0, 200,
  296. GenericFormatSummary
  297. },
  298. { /* GENPROP_ERROR_BAD_OPCODE */
  299. 0, 0,
  300. "Error: Bad Opcode (Function does not exist)",
  301. "The procedure indicated does not exist.",
  302. PROP_TYPE_SUMMARY,
  303. PROP_QUAL_NONE,
  304. 0, 80,
  305. FormatPropertyInstance
  306. },
  307. { /* GENPROP_CALLNAME */
  308. 0, 0,
  309. "RPC Interface Name",
  310. "RPC Interface Name.",
  311. PROP_TYPE_STRING,
  312. PROP_QUAL_NONE,
  313. 0, 100,
  314. FormatPropertyInstance
  315. },
  316. { /* GENPROP_ENCRYPTED */
  317. 0, 0,
  318. "Encrypted RPC Call",
  319. "This RPC Data is Encrypted",
  320. PROP_TYPE_SUMMARY,
  321. PROP_QUAL_NONE,
  322. 0, 100,
  323. FormatPropertyInstance
  324. },
  325. };
  326. DWORD nExtroClusterGenProps = ((sizeof ExtroCluster_GenProps) / PROPERTYINFO_SIZE);
  327. /*
  328. * Property database for interface Clusapi
  329. */
  330. PROPERTYINFO Clusapi_GenProps[] =
  331. {
  332. { /* GENPROP_SUMMARY */
  333. 0, 0,
  334. "Summary",
  335. "Clusapi RPC Call Summary.",
  336. PROP_TYPE_SUMMARY,
  337. PROP_QUAL_NONE,
  338. 0, 200,
  339. GenericFormatSummary
  340. },
  341. { /* GENPROP_ERROR_BAD_OPCODE */
  342. 0, 0,
  343. "Error: Bad Opcode (Function does not exist)",
  344. "The procedure indicated does not exist.",
  345. PROP_TYPE_SUMMARY,
  346. PROP_QUAL_NONE,
  347. 0, 80,
  348. FormatPropertyInstance
  349. },
  350. { /* GENPROP_CALLNAME */
  351. 0, 0,
  352. "RPC Interface Name",
  353. "RPC Interface Name.",
  354. PROP_TYPE_STRING,
  355. PROP_QUAL_NONE,
  356. 0, 100,
  357. FormatPropertyInstance
  358. },
  359. { /* GENPROP_ENCRYPTED */
  360. 0, 0,
  361. "Encrypted RPC Call",
  362. "This RPC Data is Encrypted",
  363. PROP_TYPE_SUMMARY,
  364. PROP_QUAL_NONE,
  365. 0, 100,
  366. FormatPropertyInstance
  367. },
  368. };
  369. DWORD nClusapiGenProps = ((sizeof Clusapi_GenProps) / PROPERTYINFO_SIZE);
  370. /*
  371. * Property database for interface JoinVersion
  372. */
  373. PROPERTYINFO JoinVersion_GenProps[] =
  374. {
  375. /* Default properties */
  376. { /* GENPROP_SUMMARY */
  377. 0, 0,
  378. "Summary",
  379. "JoinVersion RPC Call Summary.",
  380. PROP_TYPE_SUMMARY,
  381. PROP_QUAL_NONE,
  382. 0, 200,
  383. GenericFormatSummary
  384. },
  385. { /* GENPROP_ERROR_BAD_OPCODE */
  386. 0, 0,
  387. "Error: Bad Opcode (Function does not exist)",
  388. "The procedure indicated does not exist.",
  389. PROP_TYPE_SUMMARY,
  390. PROP_QUAL_NONE,
  391. 0, 80,
  392. FormatPropertyInstance
  393. },
  394. { /* GENPROP_CALLNAME */
  395. 0, 0,
  396. "RPC Interface Name",
  397. "RPC Interface Name.",
  398. PROP_TYPE_STRING,
  399. PROP_QUAL_NONE,
  400. 0, 100,
  401. FormatPropertyInstance
  402. },
  403. { /* GENPROP_ENCRYPTED */
  404. 0, 0,
  405. "Encrypted RPC Call",
  406. "This RPC Data is Encrypted",
  407. PROP_TYPE_SUMMARY,
  408. PROP_QUAL_NONE,
  409. 0, 100,
  410. FormatPropertyInstance
  411. },
  412. };
  413. DWORD nJoinVersionGenProps = ((sizeof JoinVersion_GenProps) / PROPERTYINFO_SIZE);