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.

27 lines
626 B

  1. #include "precomp.h"
  2. // global variables
  3. HINSTANCE hInstance;
  4. EXTERN_C BOOL DllInitialize(IN PVOID hmod, IN ULONG ulReason, IN PCONTEXT pctx OPTIONAL)
  5. {
  6. UNREFERENCED_PARAMETER(pctx);
  7. if (ulReason == DLL_PROCESS_ATTACH)
  8. {
  9. hInstance = (HINSTANCE) hmod;
  10. DisableThreadLibraryCalls(hInstance);
  11. SHFusionInitializeFromModuleID(hInstance, 124);
  12. #ifdef DEBUG
  13. CcshellGetDebugFlags();
  14. #endif
  15. }
  16. else if (ulReason == DLL_PROCESS_DETACH)
  17. {
  18. #ifdef DEBUG
  19. DeskCheckForLeaks();
  20. #endif
  21. SHFusionUninitialize();
  22. }
  23. return TRUE;
  24. }