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 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 | 443 |
444 typedef struct _MEMORY_SECTION_NAME { // Information Class 2 | 444 typedef struct _MEMORY_SECTION_NAME { // Information Class 2 |
445 UNICODE_STRING SectionFileName; | 445 UNICODE_STRING SectionFileName; |
446 } MEMORY_SECTION_NAME, *PMEMORY_SECTION_NAME; | 446 } MEMORY_SECTION_NAME, *PMEMORY_SECTION_NAME; |
447 | 447 |
448 typedef NTSTATUS (WINAPI *NtQueryVirtualMemoryFunction)( | 448 typedef NTSTATUS (WINAPI *NtQueryVirtualMemoryFunction)( |
449 IN HANDLE ProcessHandle, | 449 IN HANDLE ProcessHandle, |
450 IN PVOID BaseAddress, | 450 IN PVOID BaseAddress, |
451 IN MEMORY_INFORMATION_CLASS MemoryInformationClass, | 451 IN MEMORY_INFORMATION_CLASS MemoryInformationClass, |
452 OUT PVOID MemoryInformation, | 452 OUT PVOID MemoryInformation, |
453 IN ULONG MemoryInformationLength, | 453 IN SIZE_T MemoryInformationLength, |
454 OUT PULONG ReturnLength OPTIONAL); | 454 OUT PSIZE_T ReturnLength OPTIONAL); |
455 | 455 |
456 typedef NTSTATUS (WINAPI *NtProtectVirtualMemoryFunction)( | 456 typedef NTSTATUS (WINAPI *NtProtectVirtualMemoryFunction)( |
457 IN HANDLE ProcessHandle, | 457 IN HANDLE ProcessHandle, |
458 IN OUT PVOID* BaseAddress, | 458 IN OUT PVOID* BaseAddress, |
459 IN OUT PSIZE_T ProtectSize, | 459 IN OUT PSIZE_T ProtectSize, |
460 IN ULONG NewProtect, | 460 IN ULONG NewProtect, |
461 OUT PULONG OldProtect); | 461 OUT PULONG OldProtect); |
462 | 462 |
463 // ----------------------------------------------------------------------- | 463 // ----------------------------------------------------------------------- |
464 // Objects | 464 // Objects |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 #endif // SANDBOX_WIN_SRC_NT_INTERNALS_H__ | 659 #endif // SANDBOX_WIN_SRC_NT_INTERNALS_H__ |
660 | 660 |
OLD | NEW |