| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef SANDBOX_TOOLS_FINDER_NTUNDOC_H__ | 5 #ifndef SANDBOX_TOOLS_FINDER_NTUNDOC_H__ |
| 6 #define SANDBOX_TOOLS_FINDER_NTUNDOC_H__ | 6 #define SANDBOX_TOOLS_FINDER_NTUNDOC_H__ |
| 7 | 7 |
| 8 #define NTSTATUS ULONG | 8 #define NTSTATUS ULONG |
| 9 #define STATUS_SUCCESS 0x00000000 | 9 #define STATUS_SUCCESS 0x00000000 |
| 10 #define STATUS_ACCESS_DENIED 0xC0000022 | 10 #define STATUS_ACCESS_DENIED 0xC0000022 |
| 11 #define STATUS_BUFFER_OVERFLOW 0x80000005 | 11 #define STATUS_BUFFER_OVERFLOW 0x80000005 |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 FileAttributeTagInformation, // 35 | 101 FileAttributeTagInformation, // 35 |
| 102 FileTrackingInformation, // 36 | 102 FileTrackingInformation, // 36 |
| 103 FileMaximumInformation | 103 FileMaximumInformation |
| 104 // begin_wdm | 104 // begin_wdm |
| 105 } FILE_INFORMATION_CLASS, *PFILE_INFORMATION_CLASS; | 105 } FILE_INFORMATION_CLASS, *PFILE_INFORMATION_CLASS; |
| 106 | 106 |
| 107 typedef enum _SYSTEM_INFORMATION_CLASS { | 107 typedef enum _SYSTEM_INFORMATION_CLASS { |
| 108 SystemHandleInformation = 16 | 108 SystemHandleInformation = 16 |
| 109 } SYSTEM_INFORMATION_CLASS; | 109 } SYSTEM_INFORMATION_CLASS; |
| 110 | 110 |
| 111 typedef struct | 111 typedef struct _IO_STATUS_BLOCK { |
| 112 { | 112 union { |
| 113 NTSTATUS Status; | 113 NTSTATUS Status; |
| 114 ULONG Information; | 114 PVOID Pointer; |
| 115 }; |
| 116 ULONG_PTR Information; |
| 115 } IO_STATUS_BLOCK, *PIO_STATUS_BLOCK; | 117 } IO_STATUS_BLOCK, *PIO_STATUS_BLOCK; |
| 116 | 118 |
| 117 #define InitializeObjectAttributes( p, n, a, r, s ) { \ | 119 #define InitializeObjectAttributes( p, n, a, r, s ) { \ |
| 118 (p)->Length = sizeof( OBJECT_ATTRIBUTES ); \ | 120 (p)->Length = sizeof( OBJECT_ATTRIBUTES ); \ |
| 119 (p)->RootDirectory = r; \ | 121 (p)->RootDirectory = r; \ |
| 120 (p)->Attributes = a; \ | 122 (p)->Attributes = a; \ |
| 121 (p)->ObjectName = n; \ | 123 (p)->ObjectName = n; \ |
| 122 (p)->SecurityDescriptor = s; \ | 124 (p)->SecurityDescriptor = s; \ |
| 123 (p)->SecurityQualityOfService = NULL; \ | 125 (p)->SecurityQualityOfService = NULL; \ |
| 124 } | 126 } |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 | 231 |
| 230 typedef NTSTATUS (WINAPI* NTCLOSE) (HANDLE); | 232 typedef NTSTATUS (WINAPI* NTCLOSE) (HANDLE); |
| 231 | 233 |
| 232 #define DIRECTORY_QUERY 0x0001 | 234 #define DIRECTORY_QUERY 0x0001 |
| 233 #define DIRECTORY_TRAVERSE 0x0002 | 235 #define DIRECTORY_TRAVERSE 0x0002 |
| 234 #define DIRECTORY_CREATE_OBJECT 0x0004 | 236 #define DIRECTORY_CREATE_OBJECT 0x0004 |
| 235 #define DIRECTORY_CREATE_SUBDIRECTORY 0x0008 | 237 #define DIRECTORY_CREATE_SUBDIRECTORY 0x0008 |
| 236 #define DIRECTORY_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | 0xF) | 238 #define DIRECTORY_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | 0xF) |
| 237 | 239 |
| 238 #endif // SANDBOX_TOOLS_FINDER_NTUNDOC_H__ | 240 #endif // SANDBOX_TOOLS_FINDER_NTUNDOC_H__ |
| OLD | NEW |