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.

170 lines
5.3 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. #include <stdio.h>
  9. /*
  10. * The following functions are generated by default and used by
  11. * the AttachProperties functions below.
  12. */
  13. void WINAPIV GenericFormatSummary(LPPROPERTYINST lpPropertyInst)
  14. {
  15. PDWORD Data = lpPropertyInst->lpPropertyInstEx->Dword;
  16. DWORD exDataLength = lpPropertyInst->lpPropertyInstEx->LengthEx;
  17. BOOL fIsRequest = ((Data[0] & 0x80000000) != 0);
  18. WORD nProcedure = (WORD)(Data[0] & 0xffff);
  19. WORD nInterface = ((WORD)((Data[0] >> 16) & 0x7fff));
  20. if ( exDataLength > sizeof( DWORD )) {
  21. wsprintf(lpPropertyInst->szPropertyText, "RPC %s %s:%s(%d)",
  22. (fIsRequest) ? "Request" : "Response",
  23. InterfaceNames[nInterface],
  24. ProcedureNames[ProcedureNameIndex[nInterface] + nProcedure - FirstProcedureNumber[nInterface]],
  25. Data[1]);
  26. }
  27. else {
  28. wsprintf(lpPropertyInst->szPropertyText, "RPC %s %s:%s(..)",
  29. (fIsRequest) ? "Request" : "Response",
  30. InterfaceNames[nInterface],
  31. ProcedureNames[ProcedureNameIndex[nInterface] + nProcedure - FirstProcedureNumber[nInterface]]);
  32. }
  33. }
  34. void GenericAttachByte(HPROPERTY hProperty,
  35. HFRAME hFrame,
  36. LPBYTE lpData,
  37. DWORD IndentLevel)
  38. {
  39. if (IndentLevel > 14) IndentLevel = 14;
  40. AttachPropertyInstance(hFrame,
  41. hProperty,
  42. sizeof(BYTE),
  43. lpData,
  44. 0, IndentLevel, 0);
  45. }
  46. void GenericAttachWord(HPROPERTY hProperty,
  47. HFRAME hFrame,
  48. LPBYTE lpData,
  49. DWORD IndentLevel)
  50. {
  51. if (IndentLevel > 14) IndentLevel = 14;
  52. AttachPropertyInstance(hFrame,
  53. hProperty,
  54. sizeof(WORD),
  55. lpData,
  56. 0, IndentLevel,
  57. (fIsFlipped)?IFLAG_SWAPPED:0);
  58. }
  59. void GenericAttachDword(HPROPERTY hProperty,
  60. HFRAME hFrame,
  61. LPBYTE lpData,
  62. DWORD IndentLevel)
  63. {
  64. if (IndentLevel > 14) IndentLevel = 14;
  65. AttachPropertyInstance(hFrame,
  66. hProperty,
  67. sizeof(DWORD),
  68. lpData,
  69. 0, IndentLevel,
  70. (fIsFlipped)?IFLAG_SWAPPED:0);
  71. }
  72. void GenericAttachLargeint(HPROPERTY hProperty,
  73. HFRAME hFrame,
  74. LPBYTE lpData,
  75. DWORD IndentLevel)
  76. {
  77. if (IndentLevel > 14) IndentLevel = 14;
  78. AttachPropertyInstance(hFrame,
  79. hProperty,
  80. 8,
  81. lpData,
  82. 0, IndentLevel,
  83. (fIsFlipped)?IFLAG_SWAPPED:0);
  84. }
  85. void GenericAttachString(HPROPERTY hProperty,
  86. HFRAME hFrame,
  87. LPBYTE lpData,
  88. DWORD nLength,
  89. DWORD IndentLevel)
  90. {
  91. if (IndentLevel > 14) IndentLevel = 14;
  92. AttachPropertyInstance(hFrame,
  93. hProperty,
  94. nLength,
  95. lpData,
  96. 0, IndentLevel, 0);
  97. }
  98. void GenericAttachUnicodeString(HPROPERTY hProperty,
  99. HFRAME hFrame,
  100. LPBYTE lpData,
  101. DWORD nLength,
  102. DWORD IndentLevel)
  103. {
  104. TYPED_STRING ts;
  105. ts.StringType = TYPED_STRING_UNICODE;
  106. ts.lpString = lpData;
  107. if (IndentLevel > 14) IndentLevel = 14;
  108. if (nLength)
  109. AttachPropertyInstanceEx(hFrame,
  110. hProperty,
  111. nLength,
  112. lpData,
  113. nLength,
  114. &ts,
  115. 0, IndentLevel, 0);
  116. }
  117. void GenericAttachAnything(HPROPERTY hProperty,
  118. HFRAME hFrame,
  119. LPBYTE lpData,
  120. DWORD nLength,
  121. DWORD IndentLevel)
  122. {
  123. if (IndentLevel > 14) IndentLevel = 14;
  124. AttachPropertyInstance(hFrame,
  125. hProperty,
  126. nLength,
  127. lpData,
  128. 0, IndentLevel, 0);
  129. }
  130. void GenericAttachStruct(HPROPERTY hProperty,
  131. HFRAME hFrame,
  132. LPBYTE lpData,
  133. DWORD nLength,
  134. DWORD IndentLevel)
  135. {
  136. if (IndentLevel > 14) IndentLevel = 14;
  137. AttachPropertyInstance(hFrame,
  138. hProperty,
  139. nLength,
  140. lpData,
  141. 0, IndentLevel, 0);
  142. }
  143. void GenericAttachID(HPROPERTY hProperty,
  144. HFRAME hFrame,
  145. LPBYTE lpData,
  146. DWORD IndentLevel)
  147. {
  148. if (IndentLevel > 14) IndentLevel = 14;
  149. AttachPropertyInstance(hFrame,
  150. hProperty,
  151. 16,
  152. lpData,
  153. 0, IndentLevel, 0);
  154. }