Windows NT 4.0 source code leak
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.
 
 
 
 
 
 

81 lines
1.3 KiB

/*++
Copyright (c) 1990 Microsoft Corporation
Module Name:
disccode.h
Abstract:
This module implements the discardable code routines for the NT redirector
Author:
Larry Osterman (LarryO) 12-Nov-1993
Revision History:
12-Nov-1993 LarryO
Created
--*/
#ifndef _DISCCODE_
#define _DISCCODE_
typedef enum {
RdrFileDiscardableSection,
RdrVCDiscardableSection,
RdrConnectionDiscardableSection,
BowserDiscardableCodeSection,
BowserNetlogonDiscardableCodeSection,
RdrMaxDiscardableSection
} DISCARDABLE_SECTION_NAME;
VOID
RdrReferenceDiscardableCode(
IN DISCARDABLE_SECTION_NAME SectionName
);
VOID
RdrDereferenceDiscardableCode(
IN DISCARDABLE_SECTION_NAME SectionName
);
VOID
RdrInitializeDiscardableCode(
VOID
);
VOID
RdrUninitializeDiscardableCode(
VOID
);
typedef struct _RDR_SECTION {
LONG ReferenceCount;
BOOLEAN Locked;
BOOLEAN TimerCancelled;
PKTIMER Timer;
KEVENT TimerDoneEvent;
PVOID CodeBase;
PVOID CodeHandle;
PVOID DataBase;
PVOID DataHandle;
} RDR_SECTION, *PRDR_SECTION;
extern
RDR_SECTION
RdrSectionInfo[];
#define RdrIsDiscardableCodeReferenced(SectionName) \
(BOOLEAN)((RdrSectionInfo[SectionName].ReferenceCount != 0) && \
RdrSectionInfo[SectionName].Locked)
#endif // _DISCCODE_