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.

62 lines
1.0 KiB

  1. /*++
  2. Copyright (c) 1990 Microsoft Corporation
  3. Module Name:
  4. dllinit.c
  5. Abstract:
  6. This module contians the DLL attach/detach event entry point for
  7. a Setup support DLL.
  8. Author:
  9. Sunil Pai (sunilp) Aug 1993
  10. Revision History:
  11. --*/
  12. #include <windows.h>
  13. HANDLE ThisDLLHandle;
  14. BOOL
  15. DLLInit(
  16. IN HANDLE DLLHandle,
  17. IN DWORD Reason,
  18. IN LPVOID ReservedAndUnused
  19. )
  20. {
  21. ReservedAndUnused;
  22. switch(Reason) {
  23. case DLL_PROCESS_ATTACH:
  24. ThisDLLHandle = DLLHandle;
  25. break;
  26. case DLL_PROCESS_DETACH:
  27. // Delete all automatically established connections
  28. // See UNC handling in netcon.c.
  29. //
  30. // BUGBUG: This doesn't work, because the unload sequence
  31. // is different for "lazy" load DLLs than for load-time DLLs.
  32. // INFs must be responsible for calling DeleteAllConnections().
  33. //
  34. // DeleteAllConnectionsWorker() ;
  35. //
  36. break ;
  37. case DLL_THREAD_ATTACH:
  38. case DLL_THREAD_DETACH:
  39. break;
  40. }
  41. return(TRUE);
  42. }