123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
- // Use of this source code is governed by a BSD-style license that can be
- // found in the LICENSE file.
- #ifndef SANDBOX_WIN_SRC_SANDBOX_NT_TYPES_H_
- #define SANDBOX_WIN_SRC_SANDBOX_NT_TYPES_H_
- #include "sandbox/win/src/nt_internals.h"
- namespace sandbox {
- struct NtExports {
- bool Initialized;
- NtAllocateVirtualMemoryFunction AllocateVirtualMemory;
- NtCreateFileFunction CreateFile;
- NtCreateSectionFunction CreateSection;
- NtCloseFunction Close;
- NtDuplicateObjectFunction DuplicateObject;
- NtFreeVirtualMemoryFunction FreeVirtualMemory;
- NtMapViewOfSectionFunction MapViewOfSection;
- NtOpenFileFunction OpenFile;
- NtOpenThreadFunction OpenThread;
- NtOpenProcessFunction OpenProcess;
- NtOpenProcessTokenFunction OpenProcessToken;
- NtOpenProcessTokenExFunction OpenProcessTokenEx;
- NtProtectVirtualMemoryFunction ProtectVirtualMemory;
- NtQueryAttributesFileFunction QueryAttributesFile;
- NtQueryFullAttributesFileFunction QueryFullAttributesFile;
- NtQueryInformationProcessFunction QueryInformationProcess;
- NtQueryObjectFunction QueryObject;
- NtQuerySectionFunction QuerySection;
- NtQueryVirtualMemoryFunction QueryVirtualMemory;
- NtSetInformationFileFunction SetInformationFile;
- NtSetInformationProcessFunction SetInformationProcess;
- NtSignalAndWaitForSingleObjectFunction SignalAndWaitForSingleObject;
- NtUnmapViewOfSectionFunction UnmapViewOfSection;
- NtWaitForSingleObjectFunction WaitForSingleObject;
- RtlAllocateHeapFunction RtlAllocateHeap;
- RtlAnsiStringToUnicodeStringFunction RtlAnsiStringToUnicodeString;
- RtlCompareUnicodeStringFunction RtlCompareUnicodeString;
- RtlCreateHeapFunction RtlCreateHeap;
- RtlCreateUserThreadFunction RtlCreateUserThread;
- RtlDestroyHeapFunction RtlDestroyHeap;
- RtlFreeHeapFunction RtlFreeHeap;
- RtlNtStatusToDosErrorFunction RtlNtStatusToDosError;
- _strnicmpFunction _strnicmp;
- strlenFunction strlen;
- wcslenFunction wcslen;
- memcpyFunction memcpy;
- };
- // This is the value used for the ntdll level allocator.
- enum AllocationType {
- NT_ALLOC,
- NT_PAGE
- };
- } // namespace sandbox
- #endif // SANDBOX_WIN_SRC_SANDBOX_NT_TYPES_H_
|