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.

43 lines
789 B

  1. #include "windows.h"
  2. #include "wdbgexts.h"
  3. #include <ntverp.h>
  4. #include <dbghelp.h>
  5. EXT_API_VERSION ApiVersion = { (VER_PRODUCTVERSION_W >> 8), (VER_PRODUCTVERSION_W & 0xff), EXT_API_VERSION_NUMBER64, 0 };
  6. WINDBG_EXTENSION_APIS ExtensionApis;
  7. ULONG SavedMajorVersion;
  8. ULONG SavedMinorVersion;
  9. VOID
  10. WinDbgExtensionDllInit(
  11. PWINDBG_EXTENSION_APIS lpExtensionApis,
  12. USHORT MajorVersion,
  13. USHORT MinorVersion
  14. )
  15. {
  16. ExtensionApis = *lpExtensionApis;
  17. SavedMajorVersion = MajorVersion;
  18. SavedMinorVersion = MinorVersion;
  19. return;
  20. }
  21. LPEXT_API_VERSION
  22. ExtensionApiVersion(
  23. VOID
  24. )
  25. {
  26. return &ApiVersion;
  27. }
  28. //
  29. // Routine called by debugger after load
  30. //
  31. VOID
  32. CheckVersion(
  33. VOID
  34. )
  35. {
  36. return;
  37. }