summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-02-10 01:58:23 -0500
committermidipix <writeonce@midipix.org>2016-02-10 01:58:23 -0500
commit02d60e7437b7ee8a279b5d268b3ddc1a5a3bd596 (patch)
tree975afba7969cb43971189d37ab9b19216c6106b5
parent933114eb3ed99264b95332f30ae91e160fc067a0 (diff)
downloadntapi-02d60e7437b7ee8a279b5d268b3ddc1a5a3bd596.tar.bz2
ntapi-02d60e7437b7ee8a279b5d268b3ddc1a5a3bd596.tar.xz
nt_file.h: defined NT_FILE_GENERIC_WRITE.
-rw-r--r--include/ntapi/nt_file.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/ntapi/nt_file.h b/include/ntapi/nt_file.h
index 3bdd085..e14c0d0 100644
--- a/include/ntapi/nt_file.h
+++ b/include/ntapi/nt_file.h
@@ -295,6 +295,13 @@ typedef enum _nt_fs_info_class {
#define NT_FILE_READ_ATTRIBUTES (0x0080u)
#define NT_FILE_WRITE_ATTRIBUTES (0x0100u)
+#define NT_FILE_GENERIC_WRITE NT_FILE_WRITE_ATTRIBUTES \
+ | NT_FILE_WRITE_DATA \
+ | NT_FILE_WRITE_EA \
+ | NT_FILE_APPEND_DATA \
+ | NT_SEC_READ_CONTROL \
+ | NT_SEC_SYNCHRONIZE
+
#define NT_FILE_ALL_ACCESS NT_FILE_ANY_ACCESS \
| NT_FILE_READ_ACCESS \
| NT_FILE_WRITE_ACCESS \