VirtualBox

Changeset 92959 in vbox for trunk


Ignore:
Timestamp:
Dec 16, 2021 9:40:40 AM (3 years ago)
Author:
vboxsync
Message:

iprt/nt/nt.h: Some adjustments for the W11 WDK. bugref:10116

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/nt/nt.h

    r92921 r92959  
    219219# define NtQueryVolumeInformationFile   OutdatedWdm_NtQueryVolumeInformationFile
    220220# define NtSetVolumeInformationFile     OutdatedWdm_NtSetVolumeInformationFile
     221# define _MEMORY_INFORMATION_CLASS      OutdatedWdm__MEMORY_INFORMATION_CLASS
     222# define MEMORY_INFORMATION_CLASS       OutdatedWdm_MEMORY_INFORMATION_CLASS
     223# define MemoryBasicInformation         OutdatedWdm_MemoryBasicInformation
     224# define NtQueryVirtualMemory           OutdatedWdm_NtQueryVirtualMemory
    221225
    222226# pragma warning(push)
     
    265269# undef NtQueryVolumeInformationFile
    266270# undef NtSetVolumeInformationFile
     271# undef _MEMORY_INFORMATION_CLASS
     272# undef MEMORY_INFORMATION_CLASS
     273# undef MemoryBasicInformation
     274# undef NtQueryVirtualMemory
    267275
    268276# define IPRT_NT_NEED_API_GROUP_NTIFS
     
    27072715} PROCESSINFOCLASS;
    27082716AssertCompile(ProcessSequenceNumber == 0x5c);
     2717#endif
     2718#if defined(IPRT_NT_USE_WINTERNL) || defined(WDK_NTDDI_VERSION) /* Present in ntddk.h from 7600.16385.1, but not in W10. */
    27092719RT_DECL_NTAPI(NTSTATUS) NtQueryInformationProcess(HANDLE, PROCESSINFOCLASS, PVOID, ULONG, PULONG);
     2720#endif
     2721#ifdef IPRT_NT_USE_WINTERNL
    27102722#if ARCH_BITS == 32
    27112723/** 64-bit API pass thru to WOW64 processes. */
     
    29442956    MemoryBasicVlmInformation
    29452957} MEMORY_INFORMATION_CLASS;
    2946 #ifdef IN_RING0
     2958#ifndef IPRT_NT_USE_WINTERNL
     2959# ifndef WDK_NTDDI_VERSION /* W10 ntifs.h has it, 7600.16385.1 didn't. */
    29472960typedef struct _MEMORY_BASIC_INFORMATION
    29482961{
     
    29502963    PVOID AllocationBase;
    29512964    ULONG AllocationProtect;
     2965#  if ARCH_BITS == 64
     2966    USHORT PartitionId;
     2967#  endif
    29522968    SIZE_T RegionSize;
    29532969    ULONG State;
     
    29562972} MEMORY_BASIC_INFORMATION;
    29572973typedef MEMORY_BASIC_INFORMATION *PMEMORY_BASIC_INFORMATION;
     2974# endif
    29582975# define NtQueryVirtualMemory ZwQueryVirtualMemory
    29592976#endif
     2977#if defined(IPRT_NT_USE_WINTERNL) || !defined(WDK_NTDDI_VERSION) /* W10 ntifs.h has it, 7600.16385.1 didn't. */
    29602978RT_DECL_NTAPI(NTSTATUS) NtQueryVirtualMemory(HANDLE, void const *, MEMORY_INFORMATION_CLASS, PVOID, SIZE_T, PSIZE_T);
     2979#endif
    29612980#ifdef IPRT_NT_USE_WINTERNL
    29622981RT_DECL_NTAPI(NTSTATUS) NtAllocateVirtualMemory(HANDLE, PVOID *, ULONG, PSIZE_T, ULONG, ULONG);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette