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> |
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
649 PHANDLE LinkHandle, | 649 PHANDLE LinkHandle, |
650 ACCESS_MASK DesiredAccess, | 650 ACCESS_MASK DesiredAccess, |
651 POBJECT_ATTRIBUTES ObjectAttributes); | 651 POBJECT_ATTRIBUTES ObjectAttributes); |
652 | 652 |
653 #define DIRECTORY_QUERY 0x0001 | 653 #define DIRECTORY_QUERY 0x0001 |
654 #define DIRECTORY_TRAVERSE 0x0002 | 654 #define DIRECTORY_TRAVERSE 0x0002 |
655 #define DIRECTORY_CREATE_OBJECT 0x0004 | 655 #define DIRECTORY_CREATE_OBJECT 0x0004 |
656 #define DIRECTORY_CREATE_SUBDIRECTORY 0x0008 | 656 #define DIRECTORY_CREATE_SUBDIRECTORY 0x0008 |
657 #define DIRECTORY_ALL_ACCESS 0x000F | 657 #define DIRECTORY_ALL_ACCESS 0x000F |
658 | 658 |
| 659 typedef NTSTATUS (WINAPI* NtCreateLowBoxToken)( |
| 660 OUT PHANDLE token, |
| 661 IN HANDLE original_handle, |
| 662 IN ACCESS_MASK access, |
| 663 IN POBJECT_ATTRIBUTES object_attribute, |
| 664 IN PSID appcontainer_sid, |
| 665 IN DWORD capabilityCount, |
| 666 IN PSID_AND_ATTRIBUTES capabilities, |
| 667 IN DWORD handle_count, |
| 668 IN PHANDLE handles); |
| 669 |
| 670 typedef NTSTATUS(WINAPI *NtSetInformationProcess)( |
| 671 IN HANDLE process_handle, |
| 672 IN ULONG info_class, |
| 673 IN PVOID process_information, |
| 674 IN ULONG information_length); |
| 675 |
| 676 struct PROCESS_ACCESS_TOKEN { |
| 677 HANDLE token; |
| 678 HANDLE thread; |
| 679 }; |
| 680 |
| 681 const unsigned int NtProcessInformationAccessToken = 9; |
| 682 |
659 #endif // SANDBOX_WIN_SRC_NT_INTERNALS_H__ | 683 #endif // SANDBOX_WIN_SRC_NT_INTERNALS_H__ |
660 | 684 |
OLD | NEW |