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.

82 lines
910 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 <admex.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. // CREATE_DEBUG_PRINT_OBJECT( "admxprox" );
  42. DisableThreadLibraryCalls( hDll );
  43. break;
  44. case DLL_PROCESS_DETACH :
  45. // DELETE_DEBUG_PRINT_OBJECT();
  46. break;
  47. }
  48. return status;
  49. } // DLLEntry
  50. } // extern "C"