VirtualBox

Changeset 91449 in vbox


Ignore:
Timestamp:
Sep 28, 2021 8:21:38 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
147132
Message:

IPRT/memobj: MmAllocatePagesForMdlEx is not visible when building the NT3+ VBoxGuest, so typedef a pointer to it instead lf of using decltype. bugref:5324

Location:
trunk/src/VBox/Runtime/r0drv/nt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/nt/initterm-r0drv-nt.cpp

    r91446 r91449  
    103103decltype(MmAllocatePagesForMdl)        *g_pfnrtMmAllocatePagesForMdl;
    104104/** MmAllocatePagesForMdlEx - Introduced in Windows Server 2003 SP1. */
    105 decltype(MmAllocatePagesForMdlEx)      *g_pfnrtMmAllocatePagesForMdlEx;
     105PFNMMALLOCATEPAGESFORMDLEX              g_pfnrtMmAllocatePagesForMdlEx;
    106106/** MmFreePagesFromMdl - Introduced in Windows 2000. */
    107107decltype(MmFreePagesFromMdl)           *g_pfnrtMmFreePagesFromMdl;
  • trunk/src/VBox/Runtime/r0drv/nt/internal-r0drv-nt.h

    r91446 r91449  
    5151typedef ULONG64 (__stdcall *PFNRTKEQUERYINTERRUPTTIMEPRECISE)(PULONG64 pQpcTS);
    5252typedef VOID (__stdcall *PFNRTKEQUERYSYSTEMTIMEPRECISE)(PLARGE_INTEGER pTime);
     53typedef PMDL (__stdcall *PFNMMALLOCATEPAGESFORMDLEX)(PHYSICAL_ADDRESS, PHYSICAL_ADDRESS, PHYSICAL_ADDRESS,
     54                                                     SIZE_T, MEMORY_CACHING_TYPE, ULONG);
    5355
    5456
     
    9193extern decltype(MmProtectMdlSystemAddress)    *g_pfnrtMmProtectMdlSystemAddress;
    9294extern decltype(MmAllocatePagesForMdl)        *g_pfnrtMmAllocatePagesForMdl;
    93 extern decltype(MmAllocatePagesForMdlEx)      *g_pfnrtMmAllocatePagesForMdlEx;
     95extern PFNMMALLOCATEPAGESFORMDLEX              g_pfnrtMmAllocatePagesForMdlEx;
    9496extern decltype(MmFreePagesFromMdl)           *g_pfnrtMmFreePagesFromMdl;
    9597extern decltype(MmMapLockedPagesSpecifyCache) *g_pfnrtMmMapLockedPagesSpecifyCache;
Note: See TracChangeset for help on using the changeset viewer.

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