FreeTitlePhysicalPages

Used to free pages allocated with AllocateTitlePhysicalPages.

Syntax

BOOL FreeTitlePhysicalPages(
         HANDLE hProcess,
         ULONG_PTR NumberOfPages,
         PULONG_PTR PageArray
)  

Parameters

hProcess
Type: HANDLE 

[in] Process handle.

NumberOfPages
Type: ULONG_PTR 

[in] Number of pages.

PageArray
Type: PULONG_PTR 

[in] A pointer to an array to store the page frame numbers of the allocated memory.

Return value

Type: BOOL 

Remarks

FreeTitlePhysicalPages can be used to free pages allocated with AllocateTitlePhysicalPages. If the pages are mapped when FreeTitlePhysicalPages is called, they will remain mapped, until they are unmapped by a call to VirtualFree or an appropriate form of MapTitlePhysicalPages. When freed pages are unmapped in this way, they will be freed at unmapping time, just as if they had been allocated by VirtualAlloc.

See also

MapTitlePhysicalPages

AllocateTitlePhysicalPages

Requirements

Header: Declared in xmem.h.