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.

56 lines
805 B

  1. /*++
  2. Copyright (C) Microsoft Corporation, 1990 - 2000
  3. All rights reserved.
  4. Module Name:
  5. dbginit.c
  6. Abstract:
  7. This module initialization
  8. Author:
  9. Dave Snipp (DaveSn) 15-Mar-1991
  10. Steve Kiraly (SteveKi) 28-Nov-2000
  11. Revision History:
  12. --*/
  13. #include "precomp.h"
  14. #pragma hdrstop
  15. #include "dbglocal.h"
  16. #include "dbgsec.h"
  17. HANDLE hInst;
  18. BOOL
  19. DllMain(
  20. IN HANDLE hModule,
  21. IN DWORD dwReason,
  22. IN LPVOID lpRes
  23. )
  24. {
  25. BOOL bRetval = TRUE;
  26. switch (dwReason)
  27. {
  28. case DLL_PROCESS_ATTACH:
  29. hInst = hModule;
  30. DisableThreadLibraryCalls(hInst);
  31. QuerySystemInformation();
  32. break;
  33. case DLL_PROCESS_DETACH:
  34. break;
  35. default:
  36. break;
  37. }
  38. return bRetval;
  39. }