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.

74 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1993-1999 Microsoft Corporation
  3. Module Name:
  4. precomp.h
  5. Abstract:
  6. This header file is used to cause the correct machine/platform specific
  7. data structures to be used when compiling for a non-hosted platform.
  8. --*/
  9. #define KDEXTMODE
  10. #include <nt.h>
  11. #include <ntrtl.h>
  12. #include <nturtl.h>
  13. #include <windows.h>
  14. #include <ntosp.h>
  15. #include <stdio.h>
  16. #include <stdlib.h>
  17. #include <string.h>
  18. // This is a 64 bit aware debugger extension
  19. #define KDEXT_64BIT
  20. #include <wdbgexts.h>
  21. #include <dbgeng.h>
  22. #include <usb.h>
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26. //
  27. // undef the wdbgexts
  28. //
  29. #undef DECLARE_API
  30. #define DECLARE_API(extension) \
  31. CPPMOD HRESULT CALLBACK extension(PDEBUG_CLIENT Client, PCSTR args)
  32. #define INIT_API() \
  33. HRESULT Status; \
  34. if ((Status = ExtQuery(Client)) != S_OK) return Status;
  35. // Safe release and NULL.
  36. #define EXT_RELEASE(Unk) \
  37. ((Unk) != NULL ? ((Unk)->Release(), (Unk) = NULL) : NULL)
  38. // Global variables initialized by query.
  39. extern PDEBUG_ADVANCED g_ExtAdvanced;
  40. extern PDEBUG_CLIENT g_ExtClient;
  41. extern PDEBUG_CONTROL g_ExtControl;
  42. extern PDEBUG_DATA_SPACES g_ExtData;
  43. extern PDEBUG_REGISTERS g_ExtRegisters;
  44. extern PDEBUG_SYMBOLS g_ExtSymbols;
  45. extern PDEBUG_SYSTEM_OBJECTS g_ExtSystem;
  46. HRESULT
  47. ExtQuery(PDEBUG_CLIENT Client);
  48. void
  49. ExtRelease(void);
  50. #define EXIT_API ExtRelease
  51. extern WINDBG_EXTENSION_APIS ExtensionApis;
  52. #ifdef __cplusplus
  53. }
  54. #endif