| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // This file holds definitions related to the ntdll API. | 5 // This file holds definitions related to the ntdll API. |
| 6 | 6 |
| 7 #ifndef SANDBOX_WIN_SRC_NT_INTERNALS_H__ | 7 #ifndef SANDBOX_WIN_SRC_NT_INTERNALS_H__ |
| 8 #define SANDBOX_WIN_SRC_NT_INTERNALS_H__ | 8 #define SANDBOX_WIN_SRC_NT_INTERNALS_H__ |
| 9 | 9 |
| 10 #include <windows.h> | 10 #include <windows.h> |
| 11 #include <stddef.h> |
| 11 | 12 |
| 12 typedef LONG NTSTATUS; | 13 typedef LONG NTSTATUS; |
| 13 #define NT_SUCCESS(st) (st >= 0) | 14 #define NT_SUCCESS(st) (st >= 0) |
| 14 | 15 |
| 15 #define STATUS_SUCCESS ((NTSTATUS)0x00000000L) | 16 #define STATUS_SUCCESS ((NTSTATUS)0x00000000L) |
| 16 #define STATUS_BUFFER_OVERFLOW ((NTSTATUS)0x80000005L) | 17 #define STATUS_BUFFER_OVERFLOW ((NTSTATUS)0x80000005L) |
| 17 #define STATUS_UNSUCCESSFUL ((NTSTATUS)0xC0000001L) | 18 #define STATUS_UNSUCCESSFUL ((NTSTATUS)0xC0000001L) |
| 18 #define STATUS_NOT_IMPLEMENTED ((NTSTATUS)0xC0000002L) | 19 #define STATUS_NOT_IMPLEMENTED ((NTSTATUS)0xC0000002L) |
| 19 #define STATUS_INFO_LENGTH_MISMATCH ((NTSTATUS)0xC0000004L) | 20 #define STATUS_INFO_LENGTH_MISMATCH ((NTSTATUS)0xC0000004L) |
| 20 #ifndef STATUS_INVALID_PARAMETER | 21 #ifndef STATUS_INVALID_PARAMETER |
| (...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 693 | 694 |
| 694 struct PROCESS_ACCESS_TOKEN { | 695 struct PROCESS_ACCESS_TOKEN { |
| 695 HANDLE token; | 696 HANDLE token; |
| 696 HANDLE thread; | 697 HANDLE thread; |
| 697 }; | 698 }; |
| 698 | 699 |
| 699 const unsigned int NtProcessInformationAccessToken = 9; | 700 const unsigned int NtProcessInformationAccessToken = 9; |
| 700 | 701 |
| 701 #endif // SANDBOX_WIN_SRC_NT_INTERNALS_H__ | 702 #endif // SANDBOX_WIN_SRC_NT_INTERNALS_H__ |
| 702 | 703 |
| OLD | NEW |