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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 IN PVOID ThreadInformation, | 301 IN PVOID ThreadInformation, |
302 IN ULONG ThreadInformationLength); | 302 IN ULONG ThreadInformationLength); |
303 | 303 |
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 LONG KPRIORITY; |
312 | 312 |
313 typedef struct _PROCESS_BASIC_INFORMATION { | 313 typedef struct _PROCESS_BASIC_INFORMATION { |
314 NTSTATUS ExitStatus; | 314 union { |
| 315 NTSTATUS ExitStatus; |
| 316 PVOID padding_for_x64_0; |
| 317 }; |
315 PPEB PebBaseAddress; | 318 PPEB PebBaseAddress; |
316 KAFFINITY AffinityMask; | 319 KAFFINITY AffinityMask; |
317 KPRIORITY BasePriority; | 320 union { |
318 ULONG UniqueProcessId; | 321 KPRIORITY BasePriority; |
319 ULONG InheritedFromUniqueProcessId; | 322 PVOID padding_for_x64_1; |
| 323 }; |
| 324 union { |
| 325 DWORD UniqueProcessId; |
| 326 PVOID padding_for_x64_2; |
| 327 }; |
| 328 union { |
| 329 DWORD InheritedFromUniqueProcessId; |
| 330 PVOID padding_for_x64_3; |
| 331 }; |
320 } PROCESS_BASIC_INFORMATION, *PPROCESS_BASIC_INFORMATION; | 332 } PROCESS_BASIC_INFORMATION, *PPROCESS_BASIC_INFORMATION; |
321 | 333 |
322 typedef NTSTATUS (WINAPI *NtQueryInformationProcessFunction)( | 334 typedef NTSTATUS (WINAPI *NtQueryInformationProcessFunction)( |
323 IN HANDLE ProcessHandle, | 335 IN HANDLE ProcessHandle, |
324 IN PROCESSINFOCLASS ProcessInformationClass, | 336 IN PROCESSINFOCLASS ProcessInformationClass, |
325 OUT PVOID ProcessInformation, | 337 OUT PVOID ProcessInformation, |
326 IN ULONG ProcessInformationLength, | 338 IN ULONG ProcessInformationLength, |
327 OUT PULONG ReturnLength OPTIONAL); | 339 OUT PULONG ReturnLength OPTIONAL); |
328 | 340 |
329 typedef NTSTATUS (WINAPI *NtSetInformationProcessFunction)( | 341 typedef NTSTATUS (WINAPI *NtSetInformationProcessFunction)( |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
681 | 693 |
682 struct PROCESS_ACCESS_TOKEN { | 694 struct PROCESS_ACCESS_TOKEN { |
683 HANDLE token; | 695 HANDLE token; |
684 HANDLE thread; | 696 HANDLE thread; |
685 }; | 697 }; |
686 | 698 |
687 const unsigned int NtProcessInformationAccessToken = 9; | 699 const unsigned int NtProcessInformationAccessToken = 9; |
688 | 700 |
689 #endif // SANDBOX_WIN_SRC_NT_INTERNALS_H__ | 701 #endif // SANDBOX_WIN_SRC_NT_INTERNALS_H__ |
690 | 702 |
OLD | NEW |