| 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> | |
| 12 | 11 |
| 13 typedef LONG NTSTATUS; | 12 typedef LONG NTSTATUS; |
| 14 #define NT_SUCCESS(st) (st >= 0) | 13 #define NT_SUCCESS(st) (st >= 0) |
| 15 | 14 |
| 16 #define STATUS_SUCCESS ((NTSTATUS)0x00000000L) | 15 #define STATUS_SUCCESS ((NTSTATUS)0x00000000L) |
| 17 #define STATUS_BUFFER_OVERFLOW ((NTSTATUS)0x80000005L) | 16 #define STATUS_BUFFER_OVERFLOW ((NTSTATUS)0x80000005L) |
| 18 #define STATUS_UNSUCCESSFUL ((NTSTATUS)0xC0000001L) | 17 #define STATUS_UNSUCCESSFUL ((NTSTATUS)0xC0000001L) |
| 19 #define STATUS_NOT_IMPLEMENTED ((NTSTATUS)0xC0000002L) | 18 #define STATUS_NOT_IMPLEMENTED ((NTSTATUS)0xC0000002L) |
| 20 #define STATUS_INFO_LENGTH_MISMATCH ((NTSTATUS)0xC0000004L) | 19 #define STATUS_INFO_LENGTH_MISMATCH ((NTSTATUS)0xC0000004L) |
| 21 #ifndef STATUS_INVALID_PARAMETER | 20 #ifndef STATUS_INVALID_PARAMETER |
| (...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 694 | 693 |
| 695 struct PROCESS_ACCESS_TOKEN { | 694 struct PROCESS_ACCESS_TOKEN { |
| 696 HANDLE token; | 695 HANDLE token; |
| 697 HANDLE thread; | 696 HANDLE thread; |
| 698 }; | 697 }; |
| 699 | 698 |
| 700 const unsigned int NtProcessInformationAccessToken = 9; | 699 const unsigned int NtProcessInformationAccessToken = 9; |
| 701 | 700 |
| 702 #endif // SANDBOX_WIN_SRC_NT_INTERNALS_H__ | 701 #endif // SANDBOX_WIN_SRC_NT_INTERNALS_H__ |
| 703 | 702 |
| OLD | NEW |