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.

65 lines
1.1 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. Ted Miller (tedm) July-1990
  10. Revision History:
  11. --*/
  12. #include <nt.h>
  13. #include <ntrtl.h>
  14. #include <nturtl.h>
  15. #include <windows.h>
  16. HINSTANCE ThisDLLHandle;
  17. BOOL
  18. DLLInit(
  19. IN HINSTANCE DLLHandle,
  20. IN DWORD Reason,
  21. IN LPVOID ReservedAndUnused
  22. )
  23. {
  24. ReservedAndUnused;
  25. switch(Reason) {
  26. case DLL_PROCESS_ATTACH:
  27. ThisDLLHandle = DLLHandle;
  28. break;
  29. case DLL_PROCESS_DETACH:
  30. // Delete all automatically established connections
  31. // See UNC handling in netcon.c.
  32. //
  33. // This doesn't work, because the unload sequence
  34. // is different for "lazy" load DLLs than for load-time DLLs.
  35. // INFs must be responsible for calling DeleteAllConnections().
  36. //
  37. // DeleteAllConnectionsWorker() ;
  38. //
  39. break ;
  40. case DLL_THREAD_ATTACH:
  41. case DLL_THREAD_DETACH:
  42. break;
  43. }
  44. return(TRUE);
  45. }