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.

231 lines
3.4 KiB

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4. #include <windows.h>
  5. #include <tchar.h>
  6. typedef LONG PDB;
  7. typedef LONG EC;
  8. typedef ULONG AGE;
  9. typedef ULONG SIG;
  10. typedef ULONG PCSIG70;
  11. typedef LONG DBI;
  12. typedef LONG Mod;
  13. typedef LONG ITSM;
  14. typedef LONG TPI;
  15. #define LNGNM_CONST
  16. #define cbErrMax 1
  17. BOOL __cdecl PDBOpenValidate (
  18. LNGNM_CONST char *szPDB,
  19. LNGNM_CONST char *szPath,
  20. LNGNM_CONST char *szMode,
  21. SIG sig,
  22. AGE age,
  23. OUT EC* pec,
  24. OUT char szError[cbErrMax],
  25. OUT PDB **pppdb
  26. );
  27. BOOL __cdecl PDBCopyTo (
  28. PDB* ppdb,
  29. const char* szTargetPdb,
  30. DWORD dwCopyFilter,
  31. DWORD dwReserved
  32. );
  33. BOOL __cdecl PDBOpen(
  34. LNGNM_CONST char *,
  35. LNGNM_CONST char *,
  36. SIG,
  37. EC *,
  38. char [cbErrMax],
  39. PDB **
  40. );
  41. BOOL __cdecl PDBClose (
  42. PDB* ppdb
  43. );
  44. BOOL __cdecl DBIQueryNextMod (
  45. DBI* pdbi, Mod* pmod, Mod** ppmodNext
  46. );
  47. BOOL __cdecl MODClose (
  48. Mod* pmod
  49. );
  50. BOOL __cdecl MODQueryLines (
  51. Mod* pmod, BYTE* pbLines, long* pcb
  52. );
  53. BOOL __cdecl MODQuerySymbols (
  54. Mod* pmod, BYTE* pbSym, long* pcb
  55. );
  56. BOOL __cdecl DBIQueryTypeServer (
  57. DBI* pdbi, ITSM itsm, OUT TPI** pptpi
  58. );
  59. BOOL __cdecl PDBOpenTpi (
  60. PDB* ppdb, const char* szMode, OUT TPI** pptpi
  61. );
  62. BOOL __cdecl TypesQueryTiMinEx (
  63. TPI* ptpi
  64. );
  65. BOOL __cdecl TypesQueryTiMacEx (
  66. TPI* ptpi
  67. );
  68. BOOL __cdecl TypesClose (
  69. TPI* ptpi
  70. );
  71. BOOL __cdecl PDBOpenDbi (
  72. PDB* ppdb, const char* szMode, const char* szTarget, OUT DBI** ppdbi
  73. );
  74. BOOL __cdecl DBIClose (
  75. DBI* pdbi
  76. );
  77. // Functions
  78. BOOL __cdecl PDBCopyTo (
  79. PDB* ppdb,
  80. const char* szTargetPdb,
  81. DWORD dwCopyFilter,
  82. DWORD dwReserved
  83. )
  84. {
  85. return (FALSE);
  86. }
  87. BOOL __cdecl PDBOpen (
  88. LNGNM_CONST char * a,
  89. LNGNM_CONST char * b,
  90. SIG c,
  91. EC * d,
  92. char e[cbErrMax],
  93. PDB ** f
  94. )
  95. {
  96. return (FALSE);
  97. }
  98. BOOL __cdecl PDBClose (
  99. PDB* ppdb
  100. )
  101. {
  102. return (FALSE);
  103. }
  104. BOOL __cdecl IDATE4 (
  105. const wchar_t *wszPDB,
  106. const char *szMode,
  107. PCSIG70 pcsig70,
  108. SIG sig,
  109. AGE age,
  110. OUT EC *pec,
  111. OUT wchar_t *wszError,
  112. size_t cchErrMax,
  113. OUT PDB **pppdb
  114. )
  115. {
  116. return (FALSE);
  117. }
  118. BOOL __cdecl DBIQueryNextMod (
  119. DBI* pdbi, Mod* pmod, Mod** ppmodNext
  120. )
  121. {
  122. return (FALSE);
  123. }
  124. BOOL __cdecl ModClose (
  125. Mod* pmod
  126. )
  127. {
  128. return (FALSE);
  129. }
  130. BOOL __cdecl ModQueryLines (
  131. Mod* pmod, BYTE* pbLines, long* pcb
  132. )
  133. {
  134. return (FALSE);
  135. }
  136. BOOL __cdecl ModQuerySymbols (
  137. Mod* pmod, BYTE* pbSym, long* pcb
  138. )
  139. {
  140. return (FALSE);
  141. }
  142. BOOL __cdecl DBIQueryTypeServer (
  143. DBI* pdbi, ITSM itsm, OUT TPI** pptpi
  144. )
  145. {
  146. return (FALSE);
  147. }
  148. BOOL __cdecl PDBOpenTpi (
  149. PDB* ppdb, const char* szMode, OUT TPI** pptpi
  150. )
  151. {
  152. return (FALSE);
  153. }
  154. BOOL __cdecl TypesQueryTiMinEx (
  155. TPI* ptpi
  156. )
  157. {
  158. return (FALSE);
  159. }
  160. BOOL __cdecl TypesQueryTiMacEx (
  161. TPI* ptpi
  162. )
  163. {
  164. return (FALSE);
  165. }
  166. BOOL __cdecl TypesClose (
  167. TPI* ptpi
  168. )
  169. {
  170. return (FALSE);
  171. }
  172. BOOL __cdecl PDBOpenDBI (
  173. PDB* ppdb, const char* szMode, const char* szTarget, OUT DBI** ppdbi
  174. )
  175. {
  176. return (FALSE);
  177. }
  178. BOOL __cdecl DBIClose (
  179. DBI* pdbi
  180. )
  181. {
  182. return (FALSE);
  183. }
  184. BOOL __cdecl PDBOpenValidate(
  185. LNGNM_CONST char *szPDB,
  186. LNGNM_CONST char *szPath,
  187. LNGNM_CONST char *szMode,
  188. SIG sig,
  189. AGE age,
  190. OUT EC* pec,
  191. OUT char szError[cbErrMax],
  192. OUT PDB **pppdb)
  193. {
  194. return (FALSE);
  195. }