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.

80 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. ncext.c
  5. --*/
  6. #include "ncext.h"
  7. #include <ntverp.h>
  8. #include <dbghelp.h>
  9. //
  10. // globals
  11. //
  12. EXT_API_VERSION ApiVersion = { (VER_PRODUCTVERSION_W >> 8), (VER_PRODUCTVERSION_W & 0xff), EXT_API_VERSION_NUMBER64, 0 };
  13. WINDBG_EXTENSION_APIS ExtensionApis;
  14. ULONG SavedMajorVersion;
  15. ULONG SavedMinorVersion;
  16. DllInit(
  17. HANDLE hModule,
  18. DWORD dwReason,
  19. DWORD dwReserved
  20. )
  21. {
  22. switch (dwReason) {
  23. case DLL_THREAD_ATTACH:
  24. break;
  25. case DLL_THREAD_DETACH:
  26. break;
  27. case DLL_PROCESS_DETACH:
  28. break;
  29. case DLL_PROCESS_ATTACH:
  30. break;
  31. }
  32. return TRUE;
  33. }
  34. VOID
  35. WinDbgExtensionDllInit(
  36. PWINDBG_EXTENSION_APIS lpExtensionApis,
  37. USHORT MajorVersion,
  38. USHORT MinorVersion
  39. )
  40. {
  41. ExtensionApis = *lpExtensionApis;
  42. SavedMajorVersion = MajorVersion;
  43. SavedMinorVersion = MinorVersion;
  44. return;
  45. }
  46. LPEXT_API_VERSION
  47. ExtensionApiVersion(
  48. VOID
  49. )
  50. {
  51. return &ApiVersion;
  52. }
  53. //
  54. // Routine called by debugger after load
  55. //
  56. VOID
  57. CheckVersion(
  58. VOID
  59. )
  60. {
  61. return;
  62. }