Kernel32PrefetchVirtualMemory Method
Provides an efficient mechanism to bring into memory potentially discontiguous virtual address ranges
in a process address space.
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", ExactSpelling = true, SetLastError = true)]
public static bool PrefetchVirtualMemory(
IntPtr hProcess,
UIntPtr numberOfEntries,
IntPtr addresses,
uint flags
)
<DllImportAttribute("Kernel32.dll", ExactSpelling := true, SetLastError := true>]
Public Shared Function PrefetchVirtualMemory (
hProcess As IntPtr,
numberOfEntries As UIntPtr,
addresses As IntPtr,
flags As UInteger
) As Boolean
Dim hProcess As IntPtr
Dim numberOfEntries As UIntPtr
Dim addresses As IntPtr
Dim flags As UInteger
Dim returnValue As Boolean
returnValue = Kernel32.PrefetchVirtualMemory(hProcess,
numberOfEntries, addresses, flags)
public:
[DllImportAttribute(L"Kernel32.dll", ExactSpelling = true, SetLastError = true)]
static bool PrefetchVirtualMemory(
IntPtr hProcess,
UIntPtr numberOfEntries,
IntPtr addresses,
unsigned int flags
)
[<DllImportAttribute("Kernel32.dll", ExactSpelling = true, SetLastError = true)>]
static member PrefetchVirtualMemory :
hProcess : IntPtr *
numberOfEntries : UIntPtr *
addresses : IntPtr *
flags : uint32 -> bool
No code example is currently available or this language may not be supported.
- 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.
Boolean
If the function succeeds, the return value is
.
If the function fails, the return value is
.
To get extended error information, call
GetLastWin32Error.