more smb create enums

This commit is contained in:
Kelvin Sherlock 2014-09-05 12:36:25 -04:00
parent 5186962c48
commit 3bfbe9a8c0
1 changed files with 45 additions and 0 deletions

45
smb.h
View File

@ -127,6 +127,9 @@ enum {
IMPERSONATION_DELEGATE = 0x03
};
// create - share access
enum {
FILE_SHARE_READ = 0x01,
@ -134,6 +137,9 @@ enum {
FILE_SHARE_DELETE = 0x04
};
// create - disposition
enum {
FILE_SUPERSEDE = 0x0000,
@ -161,6 +167,45 @@ enum {
#define FILE_OPEN_REPARSE_POINT 0x00200000
#define FILE_OPEN_NO_RECALL 0x00400000
// create - access
// 2.2.13.1.1
enum {
FILE_READ_DATA = 0x0001,
FILE_WRITE_DATA = 0x0002,
FILE_APPEND_DATA = 0x0004,
FILE_READ_EA = 0x0008,
FILE_WRITE_EA = 0x0010,
FILE_DELETE_CHILD = 0x0040,
FILE_EXECUTE = 0x0020,
FILE_READ_ATTRIBUTES = 0x0080,
FILE_WRITE_ATTRIBUTES = 0x0100
};
#define DELETE 0x00010000
#define READ_CONTROL 0x00020000
#define WRITE_DAC 0x00040000
#define WRITE_OWNER 0x00080000
//#define SYNCHRONIZE 0x00100000 // not used.
#define ACCESS_SYSTEM_SECURITY 0x01000000
#define MAXIMUM_ALLOWED 0x02000000
#define GENERIC_ALL 0x10000000
#define GENERIC_EXECUTE 0x20000000
#define GENERIC_WRITE 0x40000000
#define GENERIC_READ 0x80000000
// 2.2.13.1.2
enum {
FILE_LIST_DIRECTORY = 0x0001,
FILE_ADD_FILE = 0x0002,
FILE_ADD_SUBDIRECTORY = 0x0004,
FILE_TRAVERSE = 0x0020
};
// create response - flags
enum {
SMB2_CREATE_FLAG_REPARSEPOINT = 0x01