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.

72 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1990-1992 Microsoft Corporation
  3. Module Name:
  4. nntpsubs.c
  5. Abstract:
  6. Subroutines for LAN Manager APIs.
  7. Author:
  8. Dan Hinsley (DanHi) 23-Mar-93
  9. Revision History:
  10. --*/
  11. // These must be included first:
  12. #include <nt.h>
  13. #include <ntrtl.h>
  14. #include <nturtl.h>
  15. #define NOMINMAX // Avoid stdlib.h vs. windows.h warnings.
  16. #include <windows.h>
  17. BOOLEAN
  18. NntpInitialize (
  19. IN PVOID DllHandle,
  20. IN ULONG Reason,
  21. IN LPVOID lpReserved OPTIONAL
  22. )
  23. {
  24. UNREFERENCED_PARAMETER(DllHandle); // avoid compiler warnings
  25. //
  26. // Handle attaching w3svc.dll to a new process.
  27. //
  28. if (Reason == DLL_PROCESS_ATTACH) {
  29. #if 0
  30. //
  31. // Initialize RPC Bind Cache
  32. //
  33. NetpInitRpcBindCache();
  34. #endif
  35. //
  36. // When DLL_PROCESS_DETACH and lpReserved is NULL, then a FreeLibrary
  37. // call is being made. If lpReserved is Non-NULL, then ExitProcess is
  38. // in progress. These cleanup routines will only be called when
  39. // a FreeLibrary is being called. ExitProcess will automatically
  40. // clean up all process resources, handles, and pending io.
  41. //
  42. } else if ((Reason == DLL_PROCESS_DETACH) &&
  43. (lpReserved == NULL)) {
  44. #if 0
  45. NetpCloseRpcBindCache();
  46. #endif
  47. }
  48. return TRUE;
  49. } // NntpInitialize