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.

103 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. gfrinit.cxx
  5. Abstract:
  6. Gopher protocol initialization. This used to be gfrdll.c. All DLL specific
  7. code has moved to internet\client\dll
  8. Contents:
  9. GopherInitialize
  10. GopherTerminate
  11. Author:
  12. Richard L Firth (rfirth) 09-Jun-1995
  13. Environment:
  14. Win32 user-mode
  15. Revision History:
  16. 09-Jun-1995 rfirth
  17. Created
  18. --*/
  19. #include <wininetp.h>
  20. #include "gfrapih.h"
  21. //
  22. // functions
  23. //
  24. VOID
  25. GopherInitialize(
  26. VOID
  27. )
  28. /*++
  29. Routine Description:
  30. Performs gopher-specific initialization
  31. Arguments:
  32. None.
  33. Return Value:
  34. None.
  35. --*/
  36. {
  37. //
  38. // initialize any critical sections, lists, etc.
  39. //
  40. InitializeSerializedList(&SessionList);
  41. }
  42. VOID
  43. GopherTerminate(
  44. VOID
  45. )
  46. /*++
  47. Routine Description:
  48. Performs gopher-specific termination/cleanup
  49. Arguments:
  50. None.
  51. Return Value:
  52. None.
  53. --*/
  54. {
  55. CleanupSessions();
  56. TerminateSerializedList(&SessionList);
  57. //
  58. // make sure we returned all gopher resources
  59. //
  60. ASSERT_NO_BUFFERS();
  61. ASSERT_NO_VIEWS();
  62. ASSERT_NO_SESSIONS();
  63. }