Process Hacker Discussion Forum

 
User avatar
MagicAndre1981
Member
Posts: 230
Joined: 22 Nov 2011 12:02
OS: Windows 8Pro(x64) with Win7 UI

New API from 8.1 Update SDK (memoryapi.h)

09 Apr 2014 13:23

Has anyone an idea how those functions from the large Windows 8.1 are useful?
#if ((NTDDI_VERSION > NTDDI_WINBLUE) || (NTDDI_VERSION == NTDDI_WINBLUE && defined(WINBLUE_KBSPRING14)))
 
typedef enum OFFER_PRIORITY {
    VmOfferPriorityVeryLow = 1,
    VmOfferPriorityLow,
    VmOfferPriorityBelowNormal,
    VmOfferPriorityNormal
} OFFER_PRIORITY;
 
ULONG
WINAPI
OfferVirtualMemory(
    _Inout_updates_(Size) PVOID VirtualAddress,
    _In_ SIZE_T Size,
    _In_ OFFER_PRIORITY Priority
    );
 
 
ULONG
WINAPI
ReclaimVirtualMemory(
    _In_reads_(Size) void const * VirtualAddress,
    _In_ SIZE_T Size
    );
 
 
ULONG
WINAPI
DiscardVirtualMemory(
    _Inout_updates_(Size) PVOID VirtualAddress,
    _In_ SIZE_T Size
    );