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.

67 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. dbgexts.h
  5. --*/
  6. #ifndef _DNSDBG_H_
  7. #define _DNSDBG_H_
  8. #include <nt.h>
  9. #include <ntrtl.h>
  10. #include <nturtl.h>
  11. #include <windows.h>
  12. #include <stdio.h>
  13. #include <stdlib.h>
  14. #include <string.h>
  15. #define KDEXT_64BIT
  16. #include <wdbgexts.h>
  17. #include <dbgeng.h>
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21. #define INIT_API() \
  22. HRESULT Status; \
  23. if ((Status = ExtQuery(Client)) != S_OK) return Status;
  24. #define EXT_RELEASE(Unk) \
  25. ((Unk) != NULL ? ((Unk)->Release(), (Unk) = NULL) : NULL)
  26. #define EXIT_API ExtRelease
  27. // Global variables initialized by query.
  28. extern PDEBUG_CLIENT g_ExtClient;
  29. extern PDEBUG_CONTROL g_ExtControl;
  30. extern PDEBUG_SYMBOLS g_ExtSymbols;
  31. extern PDEBUG_SYMBOLS2 g_ExtSymbols2;
  32. extern BOOL Connected;
  33. extern ULONG TargetMachine;
  34. HRESULT
  35. ExtQuery(PDEBUG_CLIENT Client);
  36. void
  37. ExtRelease(void);
  38. HRESULT
  39. NotifyOnTargetAccessible(PDEBUG_CONTROL Control);
  40. #ifdef __cplusplus
  41. }
  42. #endif
  43. #endif // _DNSDBG_H_