Kernel32FreeUserPhysicalPages(IntPtr, IntPtr, IntPtr) Method
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Kernel32.dll", SetLastError = true)]
public static bool FreeUserPhysicalPages(
IntPtr hProcess,
ref IntPtr refNumberOfPages,
IntPtr pageArray
)
<DllImportAttribute("Kernel32.dll", SetLastError := true>]
Public Shared Function FreeUserPhysicalPages (
hProcess As IntPtr,
ByRef refNumberOfPages As IntPtr,
pageArray As IntPtr
) As Boolean
Dim hProcess As IntPtr
Dim refNumberOfPages As IntPtr
Dim pageArray As IntPtr
Dim returnValue As Boolean
returnValue = Kernel32.FreeUserPhysicalPages(hProcess,
refNumberOfPages, pageArray)
public:
[DllImportAttribute(L"Kernel32.dll", SetLastError = true)]
static bool FreeUserPhysicalPages(
[InAttribute] IntPtr hProcess,
IntPtr% refNumberOfPages,
[InAttribute] IntPtr pageArray
)
[<DllImportAttribute("Kernel32.dll", SetLastError = true)>]
static member FreeUserPhysicalPages :
hProcess : IntPtr *
refNumberOfPages : IntPtr byref *
pageArray : IntPtr -> bool
No code example is currently available or this language may not be supported.
- hProcess IntPtr
-
A handle to a process.
The function frees memory within the virtual address space of this process.
- refNumberOfPages IntPtr
-
The size of the physical memory to free, in pages.
On return, if the function fails, this parameter indicates the number of pages that are freed.
- pageArray IntPtr
-
A pointer to an array of page frame numbers of the allocated memory to be freed.
Boolean
If the function succeeds, the return value is
.
If the function fails, the return value is
, in this case,
the
refNumberOfPages parameter reflect how many pages have actually been released.
To get extended error information, call
GetLastWin32Error.