Leaked source code of windows server 2003
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.

70 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. syminfo.c
  5. --*/
  6. extern "C"
  7. {
  8. #define __CPLUSPLUS
  9. // From ntgdi\gre
  10. #include "engine.h"
  11. };
  12. // From ntgdi\gre
  13. #include "verifier.hxx"
  14. GDIHandleBitFields GDIHandleBitFieldsRef;
  15. GDIObjType GDIObjTypeRef;
  16. GDILoObjType GDILoObjTypeRef;
  17. //
  18. // Types defined in ntuser\kernel\userk.h, #include of that file causes
  19. // lot of missing definitions
  20. //
  21. #define RECORD_STACK_TRACE_SIZE 6
  22. typedef struct tagWin32AllocStats {
  23. SIZE_T dwMaxMem; // max pool memory allocated
  24. SIZE_T dwCrtMem; // current pool memory used
  25. DWORD dwMaxAlloc; // max number of pool allocations made
  26. DWORD dwCrtAlloc; // current pool allocations
  27. PWin32PoolHead pHead; // pointer to the link list with the allocations
  28. } Win32AllocStats, *PWin32AllocStats;
  29. typedef struct tagPOOLRECORD {
  30. PVOID ExtraData; // the tag
  31. SIZE_T size;
  32. PVOID trace[RECORD_STACK_TRACE_SIZE];
  33. } POOLRECORD, *PPOOLRECORD;
  34. //
  35. // Reference each type we need
  36. //
  37. ENTRY Entry;
  38. POOLRECORD PoolRecord;
  39. VSTATE VerifierState;
  40. VERIFIERTRACKHDR VerifierTrackHdr;
  41. Win32AllocStats Win32AllocStatsRef;
  42. Win32PoolHead Win32PoolHeadRef;
  43. // Make it build
  44. int __cdecl main() {
  45. return 0;
  46. }