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.
 
 
 
 
 
 

76 lines
1.5 KiB

/*++
Copyright (c) 1995 Microsoft Corporation
Module Name:
decnotif.hxx
Abstract:
This file contains the code decache notification lists
Author:
John Ludeman (johnl) 27-Jun-1995
Revision History:
Design Notes:
This package does no thread locking!! The caller is responsible for
locking before calling the APIs!
--*/
#ifndef _DECNOTIF_HXX_
#define _DECNOTIF_HXX_
//
// Structure definitions for Decache Notification List
//
#define SIGNATURE_DNI 0x20494e44 // "DNI "
#define SIGNATURE_DNL 0x204c4e44 // "DNL "
#define SIGNATURE_DNI_FREE 0x66494e44 // "DNIf"
#define SIGNATURE_DNL_FREE 0x664c4e44 // "DNLf "
//
// This is the format of a decache notification call
//
typedef VOID ( * PFN_NOTIF)( VOID * pContext );
//
// Prototypes, client lock must be held while calling these routines
//
BOOL
CheckOutDecacheNotification(
IN TSVC_CACHE * pTsvcCache,
IN const CHAR * pszFile,
IN PFN_NOTIF pfnNotif,
IN VOID * pContext,
IN DWORD TsunamiDemultiplex,
IN CRITICAL_SECTION * pcsLock,
OUT VOID * * ppvNotifCookie,
OUT VOID * * ppvCheckinCookie
);
VOID
CheckInDecacheNotification(
IN TSVC_CACHE * pTsvcCache,
IN VOID * pvNotifCookie,
IN VOID * pvCheckinCookie,
IN BOOL fAddNotification
);
BOOL
RemoveDecacheNotification(
IN VOID * pDNI
);
#endif //_DECNOTIF_HXX_