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.

529 lines
9.1 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 "skeleton.h"
  7. #include "funcs.h"
  8. /*
  9. * Names of Interfaces and Procedures
  10. */
  11. char InterfaceNames[NUM_INTERFACES][LOCAL_MAX_NAME_LENGTH] =
  12. {
  13. "resmon",
  14. };
  15. char ProcedureNames[NUM_PROCEDURES][LOCAL_MAX_NAME_LENGTH] =
  16. {
  17. "RmCreateResource",
  18. "RmCloseResource",
  19. "RmChangeResourceParams",
  20. "RmOnlineResource",
  21. "RmOfflineResource",
  22. "RmTerminateResource",
  23. "RmArbitrateResource",
  24. "RmReleaseResource",
  25. "RmNotifyChanges",
  26. "RmFailResource",
  27. "RmShutdownProcess",
  28. "RmResourceControl",
  29. "RmResourceTypeControl",
  30. };
  31. WORD ProcedureNameIndex[NUM_INTERFACES] =
  32. {
  33. 0,
  34. };
  35. WORD FirstProcedureNumber[NUM_INTERFACES] =
  36. {
  37. 0,
  38. };
  39. // ORPCFFLAGS
  40. LABELED_BIT ORPCFFlags[] =
  41. {
  42. {0, "Non-Local Call", "Call is Local to this machine"},
  43. {1, "Reserved 1", "Reserved 1"},
  44. {2, "Reserved 2", "Reserved 2"},
  45. {3, "Reserved 3", "Reserved 3"},
  46. {4, "Reserved 4", "Reserved 4"}
  47. };
  48. SET ORPCFFlagsSet = { sizeof(ORPCFFlags) / sizeof(LABELED_BIT), ORPCFFlags};
  49. /*
  50. * Property database for interface resmon
  51. */
  52. PROPERTYINFO resmon_Database[] =
  53. {
  54. /* Default properties */
  55. { /* I0_SUMMARY */
  56. 0, 0,
  57. "Summary",
  58. "Summary for RPC payload.",
  59. PROP_TYPE_SUMMARY,
  60. PROP_QUAL_NONE,
  61. 0, 200,
  62. GenericFormatSummary
  63. },
  64. { /* I0_ERROR_BAD_OPCODE */
  65. 0, 0,
  66. "Error: Bad Opcode (Function does not exist)",
  67. "The procedure indicated does not exist.",
  68. PROP_TYPE_SUMMARY,
  69. PROP_QUAL_NONE,
  70. 0, 80,
  71. FormatPropertyInstance
  72. },
  73. { /* I0_NO_PARAMETERS */
  74. 0, 0,
  75. "No parameters",
  76. "The RPC payload does not contain any parameters.",
  77. PROP_TYPE_SUMMARY,
  78. PROP_QUAL_NONE,
  79. 0, 80,
  80. FormatPropertyInstance
  81. },
  82. { /* I0_REQUEST_EXTENSIONS */
  83. 0, 0,
  84. "Extensions",
  85. "ORPC Extensions",
  86. PROP_TYPE_VOID,
  87. PROP_QUAL_NONE,
  88. 0, 100,
  89. FormatPropertyInstance
  90. },
  91. { /* I0_RESPONSE_EXTENSIONS */
  92. 0, 0,
  93. "Extensions",
  94. "ORPC Extensions",
  95. PROP_TYPE_VOID,
  96. PROP_QUAL_NONE,
  97. 0, 100,
  98. FormatPropertyInstance
  99. },
  100. { /* I0_INVALID_UNION */
  101. 0, 0,
  102. "Unhandled union",
  103. "The definition of the union prevents a handler to be correctly generated.",
  104. PROP_TYPE_VOID,
  105. PROP_QUAL_NONE,
  106. 0, 100,
  107. FormatPropertyInstance
  108. },
  109. { /* I0_INHERITED_METHOD */
  110. 0, 0,
  111. "Unknown inherited method",
  112. "This method was inherited from another object interface and cannot be parsed.",
  113. PROP_TYPE_SUMMARY,
  114. PROP_QUAL_NONE,
  115. 0, 100,
  116. FormatPropertyInstance
  117. },
  118. { /* I0_THIS */
  119. 0, 0,
  120. "THIS Parameter",
  121. "The THIS parameter for this ORPC Call",
  122. PROP_TYPE_COMMENT,
  123. PROP_QUAL_NONE,
  124. 0, 100,
  125. FormatPropertyInstance
  126. },
  127. { /* I0_THAT */
  128. 0, 0,
  129. "THAT Parameter",
  130. "The THAT parameter for this ORPC Response",
  131. PROP_TYPE_COMMENT,
  132. PROP_QUAL_NONE,
  133. 0, 100,
  134. FormatPropertyInstance
  135. },
  136. { /* I0_THIS_VERSION */
  137. 0, 0,
  138. "COM Version",
  139. "COM Version",
  140. PROP_TYPE_COMMENT,
  141. PROP_QUAL_NONE,
  142. 0, 100,
  143. FormatPropertyInstance
  144. },
  145. { /* I0_THIS_MAJORVERSION */
  146. 0, 0,
  147. "Major",
  148. "COM Major Version",
  149. PROP_TYPE_WORD,
  150. PROP_QUAL_NONE,
  151. 0, 100,
  152. FormatPropertyInstance
  153. },
  154. { /* I0_THIS_MINORVERSION */
  155. 0, 0,
  156. "Minor",
  157. "COM Minor Version",
  158. PROP_TYPE_WORD,
  159. PROP_QUAL_NONE,
  160. 0, 100,
  161. FormatPropertyInstance
  162. },
  163. { /* I0_ORPCF_FLAG_TEXT */
  164. 0, 0,
  165. "ORPCF Flags",
  166. "Flags for this ORPC Call",
  167. PROP_TYPE_DWORD,
  168. PROP_QUAL_NONE,
  169. 0, 100,
  170. FormatPropertyInstance
  171. },
  172. { /* I0_ORPCF_FLAGS */
  173. 0, 0,
  174. "ORPCF Flags",
  175. "Flags for this ORPC Call",
  176. PROP_TYPE_DWORD,
  177. PROP_QUAL_FLAGS,
  178. &ORPCFFlagsSet, 320,
  179. FormatPropertyInstance
  180. },
  181. { /* I0_THIS_RESERVED1 */
  182. 0, 0,
  183. "Reserved1",
  184. "Reserved Field",
  185. PROP_TYPE_DWORD,
  186. PROP_QUAL_NONE,
  187. 0, 100,
  188. FormatPropertyInstance
  189. },
  190. { /* I0_THIS_CID */
  191. 0, 0,
  192. "CID",
  193. "Causality ID of Caller",
  194. PROP_TYPE_COMMENT,
  195. PROP_QUAL_NONE,
  196. 0, 100,
  197. FormatPropertyInstance
  198. },
  199. { /* I0_ENCRYPTED */
  200. 0, 0,
  201. "Encrypted RPC Call",
  202. "This RPC Data is Encrypted",
  203. PROP_TYPE_SUMMARY,
  204. PROP_QUAL_NONE,
  205. 0, 100,
  206. FormatPropertyInstance
  207. },
  208. /* Generated properties */
  209. { /* I0_LPCWSTR_DLLNAME_0 */
  210. 0, 0,
  211. "LPCWSTR DllName",
  212. "Parameter LPCWSTR DllName.",
  213. PROP_TYPE_VOID,
  214. PROP_QUAL_NONE,
  215. 0, 100,
  216. FormatPropertyInstance
  217. },
  218. { /* I0_LPCWSTR_RESOURCETYPE_1 */
  219. 0, 0,
  220. "LPCWSTR ResourceType",
  221. "Parameter LPCWSTR ResourceType.",
  222. PROP_TYPE_VOID,
  223. PROP_QUAL_NONE,
  224. 0, 100,
  225. FormatPropertyInstance
  226. },
  227. { /* I0_LPCWSTR_RESOURCENAME_2 */
  228. 0, 0,
  229. "LPCWSTR ResourceName",
  230. "Parameter LPCWSTR ResourceName.",
  231. PROP_TYPE_VOID,
  232. PROP_QUAL_NONE,
  233. 0, 100,
  234. FormatPropertyInstance
  235. },
  236. { /* I0_DWORD_LOOKSALIVEPOLL_3 */
  237. 0, 0,
  238. "DWORD LooksAlivePoll",
  239. "Parameter DWORD LooksAlivePoll.",
  240. PROP_TYPE_DWORD,
  241. PROP_QUAL_NONE,
  242. 0, 100,
  243. FormatPropertyInstance
  244. },
  245. { /* I0_DWORD_ISALIVEPOLL_4 */
  246. 0, 0,
  247. "DWORD IsAlivePoll",
  248. "Parameter DWORD IsAlivePoll.",
  249. PROP_TYPE_DWORD,
  250. PROP_QUAL_NONE,
  251. 0, 100,
  252. FormatPropertyInstance
  253. },
  254. { /* I0_DWORD_NOTIFYKEY_5 */
  255. 0, 0,
  256. "DWORD NotifyKey",
  257. "Parameter DWORD NotifyKey.",
  258. PROP_TYPE_DWORD,
  259. PROP_QUAL_NONE,
  260. 0, 100,
  261. FormatPropertyInstance
  262. },
  263. { /* I0_DWORD_PENDINGTIMEOUT_6 */
  264. 0, 0,
  265. "DWORD PendingTimeout",
  266. "Parameter DWORD PendingTimeout.",
  267. PROP_TYPE_DWORD,
  268. PROP_QUAL_NONE,
  269. 0, 100,
  270. FormatPropertyInstance
  271. },
  272. { /* I0__RETURN_VALUE_7 */
  273. 0, 0,
  274. " Return Value",
  275. "Parameter Return Value.",
  276. PROP_TYPE_VOID,
  277. PROP_QUAL_NONE,
  278. 0, 100,
  279. FormatPropertyInstance
  280. },
  281. { /* I0_RPC_RESID_RESOURCEID_8 */
  282. 0, 0,
  283. "RPC_RESID ResourceId",
  284. "Parameter RPC_RESID ResourceId.",
  285. PROP_TYPE_VOID,
  286. PROP_QUAL_NONE,
  287. 0, 100,
  288. FormatPropertyInstance
  289. },
  290. { /* I0_RETURN_VALUE_9 */
  291. 0, 0,
  292. "Return Value",
  293. "Parameter Return Value.",
  294. PROP_TYPE_DWORD,
  295. PROP_QUAL_NONE,
  296. 0, 100,
  297. FormatPropertyInstance
  298. },
  299. { /* I0_DWORD_PDWSTATE_10 */
  300. 0, 0,
  301. "DWORD pdwState",
  302. "Parameter DWORD pdwState.",
  303. PROP_TYPE_DWORD,
  304. PROP_QUAL_NONE,
  305. 0, 100,
  306. FormatPropertyInstance
  307. },
  308. { /* I0_DWORD_LPNOTIFYKEY_11 */
  309. 0, 0,
  310. "DWORD lpNotifyKey",
  311. "Parameter DWORD lpNotifyKey.",
  312. PROP_TYPE_DWORD,
  313. PROP_QUAL_NONE,
  314. 0, 100,
  315. FormatPropertyInstance
  316. },
  317. { /* I0_DWORD_LPNOTIFYEVENT_12 */
  318. 0, 0,
  319. "DWORD lpNotifyEvent",
  320. "Parameter DWORD lpNotifyEvent.",
  321. PROP_TYPE_DWORD,
  322. PROP_QUAL_NONE,
  323. 0, 100,
  324. FormatPropertyInstance
  325. },
  326. { /* I0_DWORD_LPCURRENTSTATE_13 */
  327. 0, 0,
  328. "DWORD lpCurrentState",
  329. "Parameter DWORD lpCurrentState.",
  330. PROP_TYPE_DWORD,
  331. PROP_QUAL_NONE,
  332. 0, 100,
  333. FormatPropertyInstance
  334. },
  335. { /* I0_DWORD_CONTROLCODE_14 */
  336. 0, 0,
  337. "DWORD ControlCode",
  338. "Parameter DWORD ControlCode.",
  339. PROP_TYPE_DWORD,
  340. PROP_QUAL_NONE,
  341. 0, 100,
  342. FormatPropertyInstance
  343. },
  344. { /* I0_UCHAR_INBUFFER_15 */
  345. 0, 0,
  346. "UCHAR InBuffer",
  347. "Parameter UCHAR InBuffer.",
  348. PROP_TYPE_VOID,
  349. PROP_QUAL_NONE,
  350. 0, 100,
  351. FormatPropertyInstance
  352. },
  353. { /* I0_DWORD_INBUFFERSIZE_16 */
  354. 0, 0,
  355. "DWORD InBufferSize",
  356. "Parameter DWORD InBufferSize.",
  357. PROP_TYPE_DWORD,
  358. PROP_QUAL_NONE,
  359. 0, 100,
  360. FormatPropertyInstance
  361. },
  362. { /* I0_DWORD_OUTBUFFERSIZE_17 */
  363. 0, 0,
  364. "DWORD OutBufferSize",
  365. "Parameter DWORD OutBufferSize.",
  366. PROP_TYPE_DWORD,
  367. PROP_QUAL_NONE,
  368. 0, 100,
  369. FormatPropertyInstance
  370. },
  371. { /* I0_UCHAR_OUTBUFFER_18 */
  372. 0, 0,
  373. "UCHAR OutBuffer",
  374. "Parameter UCHAR OutBuffer.",
  375. PROP_TYPE_VOID,
  376. PROP_QUAL_NONE,
  377. 0, 100,
  378. FormatPropertyInstance
  379. },
  380. { /* I0_LPDWORD_BYTESREFURNED_19 */
  381. 0, 0,
  382. "LPDWORD BytesRefurned",
  383. "Parameter LPDWORD BytesRefurned.",
  384. PROP_TYPE_DWORD,
  385. PROP_QUAL_NONE,
  386. 0, 100,
  387. FormatPropertyInstance
  388. },
  389. { /* I0_LPDWORD_REQUIRED_20 */
  390. 0, 0,
  391. "LPDWORD Required",
  392. "Parameter LPDWORD Required.",
  393. PROP_TYPE_DWORD,
  394. PROP_QUAL_NONE,
  395. 0, 100,
  396. FormatPropertyInstance
  397. },
  398. { /* I0_LPCWSTR_RESOURCETYPENAME_21 */
  399. 0, 0,
  400. "LPCWSTR ResourceTypeName",
  401. "Parameter LPCWSTR ResourceTypeName.",
  402. PROP_TYPE_VOID,
  403. PROP_QUAL_NONE,
  404. 0, 100,
  405. FormatPropertyInstance
  406. },
  407. { /* I0_LPCWSTR_DLLNAME_22 */
  408. 0, 0,
  409. "LPCWSTR DllName",
  410. "Parameter LPCWSTR DllName.",
  411. PROP_TYPE_TYPED_STRING,
  412. PROP_QUAL_NONE,
  413. 0, 100,
  414. FormatPropertyInstance
  415. },
  416. { /* I0_LPCWSTR_RESOURCETYPE_23 */
  417. 0, 0,
  418. "LPCWSTR ResourceType",
  419. "Parameter LPCWSTR ResourceType.",
  420. PROP_TYPE_TYPED_STRING,
  421. PROP_QUAL_NONE,
  422. 0, 100,
  423. FormatPropertyInstance
  424. },
  425. { /* I0_LPCWSTR_RESOURCENAME_24 */
  426. 0, 0,
  427. "LPCWSTR ResourceName",
  428. "Parameter LPCWSTR ResourceName.",
  429. PROP_TYPE_TYPED_STRING,
  430. PROP_QUAL_NONE,
  431. 0, 100,
  432. FormatPropertyInstance
  433. },
  434. { /* I0_RETURN_VALUE_25 */
  435. 0, 0,
  436. "Return Value",
  437. "Parameter Return Value.",
  438. PROP_TYPE_VOID,
  439. PROP_QUAL_NONE,
  440. 0, 100,
  441. FormatPropertyInstance
  442. },
  443. { /* I0_UCHAR_OUTBUFFER______26 */
  444. 0, 0,
  445. "UCHAR OutBuffer [..]",
  446. "Parameter UCHAR OutBuffer [..].",
  447. PROP_TYPE_BYTE,
  448. PROP_QUAL_ARRAY,
  449. 0, 100,
  450. FormatPropertyInstance
  451. },
  452. { /* I0_LPCWSTR_RESOURCETYPENAME_27 */
  453. 0, 0,
  454. "LPCWSTR ResourceTypeName",
  455. "Parameter LPCWSTR ResourceTypeName.",
  456. PROP_TYPE_TYPED_STRING,
  457. PROP_QUAL_NONE,
  458. 0, 100,
  459. FormatPropertyInstance
  460. },
  461. { /* I0_UCHAR_INBUFFER______28 */
  462. 0, 0,
  463. "UCHAR InBuffer [..]",
  464. "Parameter UCHAR InBuffer [..].",
  465. PROP_TYPE_BYTE,
  466. PROP_QUAL_ARRAY,
  467. 0, 100,
  468. FormatPropertyInstance
  469. },
  470. };
  471. DWORD nresmonProperties = ((sizeof resmon_Database) / PROPERTYINFO_SIZE);