Kernel32FreeUserPhysicalPages(IntPtr, UIntPtr, UIntPtr) 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 UIntPtr refNumberOfPages,
UIntPtr pageArray
)
<DllImportAttribute("Kernel32.dll", SetLastError := true>]
Public Shared Function FreeUserPhysicalPages (
hProcess As IntPtr,
ByRef refNumberOfPages As UIntPtr,
pageArray As UIntPtr
) As Boolean
Dim hProcess As IntPtr
Dim refNumberOfPages As UIntPtr
Dim pageArray As UIntPtr
Dim returnValue As Boolean
returnValue = Kernel32.FreeUserPhysicalPages(hProcess,
refNumberOfPages, pageArray)
public:
[DllImportAttribute(L"Kernel32.dll", SetLastError = true)]
static bool FreeUserPhysicalPages(
[InAttribute] IntPtr hProcess,
UIntPtr% refNumberOfPages,
[InAttribute] UIntPtr pageArray
)
[<DllImportAttribute("Kernel32.dll", SetLastError = true)>]
static member FreeUserPhysicalPages :
hProcess : IntPtr *
refNumberOfPages : UIntPtr byref *
pageArray : UIntPtr -> 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 UIntPtr
-
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 UIntPtr
-
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.