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.

79 lines
1.2 KiB

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