Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(876)

Side by Side Diff: sandbox/win/src/nt_internals.h

Issue 942003008: Reland the ULONG -> SIZE_T change from 317177 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome_elf/blacklist/blacklist_interceptions.cc ('k') | sandbox/win/src/sandbox_nt_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome_elf/blacklist/blacklist_interceptions.cc ('k') | sandbox/win/src/sandbox_nt_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698