https://git.reactos.org/?p=reactos.git;a=commitdiff;h=d3e0eb2026581d5c6cf15…
commit d3e0eb2026581d5c6cf159a0a7a4fb708943fa5f
Author: Thomas Faber <thomas.faber(a)reactos.org>
AuthorDate: Sun Jan 28 10:34:21 2018 +0100
Commit: Thomas Faber <thomas.faber(a)reactos.org>
CommitDate: Sun Jan 28 10:48:36 2018 +0100
[NDK] Add DEFERRED_WRITE structure for Cc. CORE-14235
Consistently use CSHORT for NodeTypeCode/NodeByteSize while we're at it.
---
sdk/include/ndk/cctypes.h | 22 ++++++++++++++++++++--
1 file changed, 20 insertions(+), 2 deletions(-)
diff --git a/sdk/include/ndk/cctypes.h b/sdk/include/ndk/cctypes.h
index 22533cdaab..5dd55689f5 100644
--- a/sdk/include/ndk/cctypes.h
+++ b/sdk/include/ndk/cctypes.h
@@ -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 */