From 9eb691c4c5aa4435fe5ecb0a68fac07a567afa18 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 15 Mar 2006 14:05:09 +0000 Subject: r14445: add FILE_NOTIFY_CHANGE_STREAM_* flags from: http://ubiqx.org/cifs/rfc-draft/draft-leach-cifs-v1-spec-02.html#s4.3.7 tridge: there's also the buffering documented... metze (This used to be commit f1bdca23838d23fbad7f1576c182688b7cd9b73d) --- source4/include/smb.h | 26 ++++++++++++++++---------- source4/lib/replace/win32/replace.h | 6 +++++- 2 files changed, 21 insertions(+), 11 deletions(-) (limited to 'source4') diff --git a/source4/include/smb.h b/source4/include/smb.h index 7b2f1e903c..2ca91f729f 100644 --- a/source4/include/smb.h +++ b/source4/include/smb.h @@ -421,16 +421,22 @@ #define FILE_VOLUME_IS_COMPRESSED 0x8000 /* ChangeNotify flags. */ -#define FILE_NOTIFY_CHANGE_FILE 0x001 -#define FILE_NOTIFY_CHANGE_DIR_NAME 0x002 -#define FILE_NOTIFY_CHANGE_ATTRIBUTES 0x004 -#define FILE_NOTIFY_CHANGE_SIZE 0x008 -#define FILE_NOTIFY_CHANGE_LAST_WRITE 0x010 -#define FILE_NOTIFY_CHANGE_LAST_ACCESS 0x020 -#define FILE_NOTIFY_CHANGE_CREATION 0x040 -#define FILE_NOTIFY_CHANGE_EA 0x080 -#define FILE_NOTIFY_CHANGE_SECURITY 0x100 -#define FILE_NOTIFY_CHANGE_FILE_NAME 0x200 +#define FILE_NOTIFY_CHANGE_FILE_NAME 0x00000001 +#define FILE_NOTIFY_CHANGE_DIR_NAME 0x00000002 +#define FILE_NOTIFY_CHANGE_DIR_NAME 0x00000002 +#define FILE_NOTIFY_CHANGE_ATTRIBUTES 0x00000004 +#define FILE_NOTIFY_CHANGE_SIZE 0x00000008 +#define FILE_NOTIFY_CHANGE_LAST_WRITE 0x00000010 +#define FILE_NOTIFY_CHANGE_LAST_ACCESS 0x00000020 +#define FILE_NOTIFY_CHANGE_CREATION 0x00000040 +#define FILE_NOTIFY_CHANGE_EA 0x00000080 +#define FILE_NOTIFY_CHANGE_SECURITY 0x00000100 +#define FILE_NOTIFY_CHANGE_STREAM_NAME 0x00000200 +#define FILE_NOTIFY_CHANGE_STREAM_SIZE 0x00000400 +#define FILE_NOTIFY_CHANGE_STREAM_WRITE 0x00000800 + +#define FILE_NOTIFY_CHANGE_NAME \ + (FILE_NOTIFY_CHANGE_FILE_NAME|FILE_NOTIFY_CHANGE_DIR_NAME) /* change notify action results */ #define NOTIFY_ACTION_ADDED 1 diff --git a/source4/lib/replace/win32/replace.h b/source4/lib/replace/win32/replace.h index 185d448d95..9901e72f6e 100644 --- a/source4/lib/replace/win32/replace.h +++ b/source4/lib/replace/win32/replace.h @@ -67,6 +67,7 @@ #undef FILE_FILE_COMPRESSION #undef FILE_VOLUME_QUOTAS #undef FILE_VOLUME_IS_COMPRESSED +#undef FILE_NOTIFY_CHANGE_FILE_NAME #undef FILE_NOTIFY_CHANGE_DIR_NAME #undef FILE_NOTIFY_CHANGE_ATTRIBUTES #undef FILE_NOTIFY_CHANGE_SIZE @@ -75,7 +76,10 @@ #undef FILE_NOTIFY_CHANGE_CREATION #undef FILE_NOTIFY_CHANGE_EA #undef FILE_NOTIFY_CHANGE_SECURITY -#undef FILE_NOTIFY_CHANGE_FILE_NAME +#undef FILE_NOTIFY_CHANGE_STREAM_NAME +#undef FILE_NOTIFY_CHANGE_STREAM_SIZE +#undef FILE_NOTIFY_CHANGE_STREAM_WRITE +#undef FILE_NOTIFY_CHANGE_NAME #undef PRINTER_ATTRIBUTE_QUEUED #undef PRINTER_ATTRIBUTE_DIRECT -- cgit