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
890 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. //
  19. // Private globals.
  20. //
  21. //DECLARE_DEBUG_PRINTS_OBJECT();
  22. //
  23. // Private prototypes.
  24. //
  25. //
  26. // DLL Entrypoint.
  27. //
  28. extern "C" {
  29. BOOL
  30. WINAPI
  31. DLLEntry(
  32. HINSTANCE hDll,
  33. DWORD dwReason,
  34. LPVOID lpReserved
  35. )
  36. {
  37. BOOL status = TRUE;
  38. switch( dwReason ) {
  39. case DLL_PROCESS_ATTACH :
  40. // CREATE_DEBUG_PRINT_OBJECT( "admxprox" );
  41. DisableThreadLibraryCalls( hDll );
  42. break;
  43. case DLL_PROCESS_DETACH :
  44. // DELETE_DEBUG_PRINT_OBJECT();
  45. break;
  46. }
  47. return status;
  48. } // DLLEntry
  49. } // extern "C"