[NDK] Add DEFERRED_WRITE structure for Cc. CORE-14235

Consistently use CSHORT for NodeTypeCode/NodeByteSize while we're at it.
This commit is contained in:
Thomas Faber 2018-01-28 10:34:21 +01:00
parent d3a29816ce
commit d3e0eb2026
No known key found for this signature in database
GPG key ID: 076E7C3D44720826

View file

@ -112,8 +112,8 @@ typedef struct _MBCB
//
typedef struct _SHARED_CACHE_MAP
{
SHORT NodeTypeCode;
SHORT NodeByteSize;
CSHORT NodeTypeCode;
CSHORT NodeByteSize;
ULONG OpenCount;
LARGE_INTEGER FileSize;
LIST_ENTRY BcbList;
@ -156,6 +156,24 @@ typedef struct _SHARED_CACHE_MAP
} SHARED_CACHE_MAP, *PSHARED_CACHE_MAP;
#endif /* _NTIFS_INCLUDED_ */
//
// Deferred Write list entry
//
typedef struct _DEFERRED_WRITE
{
CSHORT NodeTypeCode;
CSHORT NodeByteSize;
PFILE_OBJECT FileObject;
ULONG BytesToWrite;
LIST_ENTRY DeferredWriteLinks;
PKEVENT Event;
PCC_POST_DEFERRED_WRITE PostRoutine;
PVOID Context1;
PVOID Context2;
BOOLEAN LimitModifiedPages;
} DEFERRED_WRITE, *PDEFERRED_WRITE;
#endif /* NTOS_MODE_USER */
#endif /* _CCTYPES_H */