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.

80 lines
902 B

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. main.cxx
  5. Abstract:
  6. DLL startup routine.
  7. Author:
  8. Keith Moore (keithmo) 17-Feb-1997
  9. Revision History:
  10. --*/
  11. extern "C" {
  12. #include <nt.h>
  13. #include <ntrtl.h>
  14. #include <nturtl.h>
  15. #include <windows.h>
  16. #include <dbgutil.h>
  17. } // extern "C"
  18. #include <iisrsta.h>
  19. //
  20. // Private globals.
  21. //
  22. //DECLARE_DEBUG_PRINTS_OBJECT();
  23. //
  24. // Private prototypes.
  25. //
  26. //
  27. // DLL Entrypoint.
  28. //
  29. extern "C" {
  30. BOOL
  31. WINAPI
  32. DLLEntry(
  33. HINSTANCE hDll,
  34. DWORD dwReason,
  35. LPVOID lpReserved
  36. )
  37. {
  38. BOOL status = TRUE;
  39. switch( dwReason ) {
  40. case DLL_PROCESS_ATTACH :
  41. DisableThreadLibraryCalls( hDll );
  42. break;
  43. case DLL_PROCESS_DETACH :
  44. break;
  45. }
  46. return status;
  47. } // DLLEntry
  48. } // extern "C"