| 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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 // Partial definition only: | 304 // Partial definition only: |
| 305 typedef enum _PROCESSINFOCLASS { | 305 typedef enum _PROCESSINFOCLASS { |
| 306 ProcessBasicInformation = 0, | 306 ProcessBasicInformation = 0, |
| 307 ProcessExecuteFlags = 0x22 | 307 ProcessExecuteFlags = 0x22 |
| 308 } PROCESSINFOCLASS; | 308 } PROCESSINFOCLASS; |
| 309 | 309 |
| 310 typedef PVOID PPEB; | 310 typedef PVOID PPEB; |
| 311 typedef PVOID KPRIORITY; | 311 typedef PVOID KPRIORITY; |
| 312 | 312 |
| 313 typedef struct _PROCESS_BASIC_INFORMATION { | 313 typedef struct _PROCESS_BASIC_INFORMATION { |
| 314 NTSTATUS ExitStatus; | 314 PVOID ExitStatus; |
| 315 PPEB PebBaseAddress; | 315 PPEB PebBaseAddress; |
| 316 KAFFINITY AffinityMask; | 316 KAFFINITY AffinityMask; |
| 317 KPRIORITY BasePriority; | 317 KPRIORITY BasePriority; |
| 318 ULONG UniqueProcessId; | 318 ULONG_PTR UniqueProcessId; |
| 319 ULONG InheritedFromUniqueProcessId; | 319 PVOID InheritedFromUniqueProcessId; |
| 320 } PROCESS_BASIC_INFORMATION, *PPROCESS_BASIC_INFORMATION; | 320 } PROCESS_BASIC_INFORMATION, *PPROCESS_BASIC_INFORMATION; |
| 321 | 321 |
| 322 typedef NTSTATUS (WINAPI *NtQueryInformationProcessFunction)( | 322 typedef NTSTATUS (WINAPI *NtQueryInformationProcessFunction)( |
| 323 IN HANDLE ProcessHandle, | 323 IN HANDLE ProcessHandle, |
| 324 IN PROCESSINFOCLASS ProcessInformationClass, | 324 IN PROCESSINFOCLASS ProcessInformationClass, |
| 325 OUT PVOID ProcessInformation, | 325 OUT PVOID ProcessInformation, |
| 326 IN ULONG ProcessInformationLength, | 326 IN ULONG ProcessInformationLength, |
| 327 OUT PULONG ReturnLength OPTIONAL); | 327 OUT PULONG ReturnLength OPTIONAL); |
| 328 | 328 |
| 329 typedef NTSTATUS (WINAPI *NtSetInformationProcessFunction)( | 329 typedef NTSTATUS (WINAPI *NtSetInformationProcessFunction)( |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 681 | 681 |
| 682 struct PROCESS_ACCESS_TOKEN { | 682 struct PROCESS_ACCESS_TOKEN { |
| 683 HANDLE token; | 683 HANDLE token; |
| 684 HANDLE thread; | 684 HANDLE thread; |
| 685 }; | 685 }; |
| 686 | 686 |
| 687 const unsigned int NtProcessInformationAccessToken = 9; | 687 const unsigned int NtProcessInformationAccessToken = 9; |
| 688 | 688 |
| 689 #endif // SANDBOX_WIN_SRC_NT_INTERNALS_H__ | 689 #endif // SANDBOX_WIN_SRC_NT_INTERNALS_H__ |
| 690 | 690 |
| OLD | NEW |