- Timestamp:
- Dec 16, 2021 9:40:40 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/nt/nt.h
r92921 r92959 219 219 # define NtQueryVolumeInformationFile OutdatedWdm_NtQueryVolumeInformationFile 220 220 # 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 221 225 222 226 # pragma warning(push) … … 265 269 # undef NtQueryVolumeInformationFile 266 270 # undef NtSetVolumeInformationFile 271 # undef _MEMORY_INFORMATION_CLASS 272 # undef MEMORY_INFORMATION_CLASS 273 # undef MemoryBasicInformation 274 # undef NtQueryVirtualMemory 267 275 268 276 # define IPRT_NT_NEED_API_GROUP_NTIFS … … 2707 2715 } PROCESSINFOCLASS; 2708 2716 AssertCompile(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. */ 2709 2719 RT_DECL_NTAPI(NTSTATUS) NtQueryInformationProcess(HANDLE, PROCESSINFOCLASS, PVOID, ULONG, PULONG); 2720 #endif 2721 #ifdef IPRT_NT_USE_WINTERNL 2710 2722 #if ARCH_BITS == 32 2711 2723 /** 64-bit API pass thru to WOW64 processes. */ … … 2944 2956 MemoryBasicVlmInformation 2945 2957 } 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. */ 2947 2960 typedef struct _MEMORY_BASIC_INFORMATION 2948 2961 { … … 2950 2963 PVOID AllocationBase; 2951 2964 ULONG AllocationProtect; 2965 # if ARCH_BITS == 64 2966 USHORT PartitionId; 2967 # endif 2952 2968 SIZE_T RegionSize; 2953 2969 ULONG State; … … 2956 2972 } MEMORY_BASIC_INFORMATION; 2957 2973 typedef MEMORY_BASIC_INFORMATION *PMEMORY_BASIC_INFORMATION; 2974 # endif 2958 2975 # define NtQueryVirtualMemory ZwQueryVirtualMemory 2959 2976 #endif 2977 #if defined(IPRT_NT_USE_WINTERNL) || !defined(WDK_NTDDI_VERSION) /* W10 ntifs.h has it, 7600.16385.1 didn't. */ 2960 2978 RT_DECL_NTAPI(NTSTATUS) NtQueryVirtualMemory(HANDLE, void const *, MEMORY_INFORMATION_CLASS, PVOID, SIZE_T, PSIZE_T); 2979 #endif 2961 2980 #ifdef IPRT_NT_USE_WINTERNL 2962 2981 RT_DECL_NTAPI(NTSTATUS) NtAllocateVirtualMemory(HANDLE, PVOID *, ULONG, PSIZE_T, ULONG, ULONG);
Note:
See TracChangeset
for help on using the changeset viewer.