diff options
author | caitkp@chromium.org <caitkp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-22 13:49:01 +0000 |
---|---|---|
committer | caitkp@chromium.org <caitkp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-22 13:49:01 +0000 |
commit | 8d43ab37f97f6875b85149e9e70c45830f0c4655 (patch) | |
tree | a451f95029b234bd2f657882cd49e2463a4e7319 /sandbox | |
parent | 466df09d585afe8ff4f3e60364dbf1ce3e618c6d (diff) | |
download | chromium_src-8d43ab37f97f6875b85149e9e70c45830f0c4655.zip chromium_src-8d43ab37f97f6875b85149e9e70c45830f0c4655.tar.gz chromium_src-8d43ab37f97f6875b85149e9e70c45830f0c4655.tar.bz2 |
Use an alternate mechanism for CreateFile calls in Chrome
BUG=334379
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245464
Review URL: https://codereview.chromium.org/138593004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@246313 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox')
-rw-r--r-- | sandbox/win/src/nt_internals.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sandbox/win/src/nt_internals.h b/sandbox/win/src/nt_internals.h index e0c74ac..8b22e0e 100644 --- a/sandbox/win/src/nt_internals.h +++ b/sandbox/win/src/nt_internals.h @@ -25,6 +25,7 @@ typedef LONG NTSTATUS; #define STATUS_ACCESS_DENIED ((NTSTATUS)0xC0000022L) #define STATUS_BUFFER_TOO_SMALL ((NTSTATUS)0xC0000023L) #define STATUS_OBJECT_NAME_NOT_FOUND ((NTSTATUS)0xC0000034L) +#define STATUS_OBJECT_NAME_COLLISION ((NTSTATUS)0xC0000035L) #define STATUS_PROCEDURE_NOT_FOUND ((NTSTATUS)0xC000007AL) #define STATUS_INVALID_IMAGE_FORMAT ((NTSTATUS)0xC000007BL) #define STATUS_NO_TOKEN ((NTSTATUS)0xC000007CL) @@ -125,6 +126,15 @@ typedef struct _IO_STATUS_BLOCK { #define FILE_OPEN_NO_RECALL 0x00400000 #define FILE_OPEN_FOR_FREE_SPACE_QUERY 0x00800000 +// Create/open result values. These are the disposition values returned on the +// io status information. +#define FILE_SUPERSEDED 0x00000000 +#define FILE_OPENED 0x00000001 +#define FILE_CREATED 0x00000002 +#define FILE_OVERWRITTEN 0x00000003 +#define FILE_EXISTS 0x00000004 +#define FILE_DOES_NOT_EXIST 0x00000005 + typedef NTSTATUS (WINAPI *NtCreateFileFunction)( OUT PHANDLE FileHandle, IN ACCESS_MASK DesiredAccess, |