Kernel32PrefetchVirtualMemory Method

Provides an efficient mechanism to bring into memory potentially discontiguous virtual address ranges in a process address space.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Kernel32.dll", ExactSpelling = true, SetLastError = true)]
public static bool PrefetchVirtualMemory(
	IntPtr hProcess,
	UIntPtr numberOfEntries,
	IntPtr addresses,
	uint flags
)

Parameters

hProcess  IntPtr
A handle to the process whose virtual address ranges are to be prefetched.
numberOfEntries  UIntPtr
Number of entries in the array pointed to by the addresses parameter.
addresses  IntPtr
Pointer to an array of Win32MemoryRangeEntry structures which each specify a virtual address range to be prefetched.

The virtual address ranges may cover any part of the process address space accessible by the target process.

flags  UInt32
Reserved parameter. Must be 0.

Return Value

Boolean
If the function succeeds, the return value is .

If the function fails, the return value is .

To get extended error information, call GetLastWin32Error.

Remarks

See Also