mirror of
https://github.com/golang/sys.git
synced 2026-02-08 11:46:04 +03:00
go.sys/windows: Add missing FILE_NOTIFY_CHANGE_SECURITY filter
According to ReadDirectoryChangesW documentation, this parameter is perfectly valid and its absence in current enumeration makes it incomplete. Internal flags like FILE_NOTIFY_CHANGE_EA were not added. Change-Id: I9d4182dcfa67e67289c0cc35155a64bf5e5152db Reviewed-on: https://go-review.googlesource.com/6560 Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
ddd1cdae39
commit
d008cdcf32
@@ -195,14 +195,15 @@ const (
|
||||
)
|
||||
|
||||
const (
|
||||
// do not reorder
|
||||
FILE_NOTIFY_CHANGE_FILE_NAME = 1 << iota
|
||||
FILE_NOTIFY_CHANGE_DIR_NAME
|
||||
FILE_NOTIFY_CHANGE_ATTRIBUTES
|
||||
FILE_NOTIFY_CHANGE_SIZE
|
||||
FILE_NOTIFY_CHANGE_LAST_WRITE
|
||||
FILE_NOTIFY_CHANGE_LAST_ACCESS
|
||||
FILE_NOTIFY_CHANGE_CREATION
|
||||
// filters for ReadDirectoryChangesW
|
||||
FILE_NOTIFY_CHANGE_FILE_NAME = 0x001
|
||||
FILE_NOTIFY_CHANGE_DIR_NAME = 0x002
|
||||
FILE_NOTIFY_CHANGE_ATTRIBUTES = 0x004
|
||||
FILE_NOTIFY_CHANGE_SIZE = 0x008
|
||||
FILE_NOTIFY_CHANGE_LAST_WRITE = 0x010
|
||||
FILE_NOTIFY_CHANGE_LAST_ACCESS = 0x020
|
||||
FILE_NOTIFY_CHANGE_CREATION = 0x040
|
||||
FILE_NOTIFY_CHANGE_SECURITY = 0x100
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
Reference in New Issue
Block a user