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.

93 lines
1.6 KiB

  1. /***********
  2. //joejoe
  3. Joelinn 2-13-95
  4. This is the pits......i have to pull in the browser in order to be started form
  5. the lanman network provider DLL. the browser should be moved elsewhere........
  6. **********************/
  7. /*++
  8. Copyright (c) 1990 Microsoft Corporation
  9. Module Name:
  10. disccode.h
  11. Abstract:
  12. This module implements the discardable code routines for the NT redirector
  13. Author:
  14. Larry Osterman (LarryO) 12-Nov-1993
  15. Revision History:
  16. 12-Nov-1993 LarryO
  17. Created
  18. --*/
  19. #ifndef _DISCCODE_
  20. #define _DISCCODE_
  21. typedef enum {
  22. RdrFileDiscardableSection,
  23. RdrVCDiscardableSection,
  24. RdrConnectionDiscardableSection,
  25. BowserDiscardableCodeSection,
  26. BowserNetlogonDiscardableCodeSection,
  27. RdrMaxDiscardableSection
  28. } DISCARDABLE_SECTION_NAME;
  29. VOID
  30. RdrReferenceDiscardableCode(
  31. IN DISCARDABLE_SECTION_NAME SectionName
  32. );
  33. VOID
  34. RdrDereferenceDiscardableCode(
  35. IN DISCARDABLE_SECTION_NAME SectionName
  36. );
  37. VOID
  38. RdrInitializeDiscardableCode(
  39. VOID
  40. );
  41. VOID
  42. RdrUninitializeDiscardableCode(
  43. VOID
  44. );
  45. typedef struct _RDR_SECTION {
  46. LONG ReferenceCount;
  47. BOOLEAN Locked;
  48. BOOLEAN TimerCancelled;
  49. PKTIMER Timer;
  50. KEVENT TimerDoneEvent;
  51. PVOID CodeBase;
  52. PVOID CodeHandle;
  53. PVOID DataBase;
  54. PVOID DataHandle;
  55. } RDR_SECTION, *PRDR_SECTION;
  56. extern
  57. RDR_SECTION
  58. RdrSectionInfo[];
  59. #define RdrIsDiscardableCodeReferenced(SectionName) \
  60. (BOOLEAN)((RdrSectionInfo[SectionName].ReferenceCount != 0) && \
  61. RdrSectionInfo[SectionName].Locked)
  62. #endif // _DISCCODE_