Kernel32VirtualQuery(UIntPtr, MemoryBasicInformation64, IntPtr) Method
Retrieves information about a range of pages in the virtual address space of the calling (current) process.
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 IntPtr VirtualQuery(
UIntPtr address,
ref MemoryBasicInformation64 refBuffer,
IntPtr length
)
<DllImportAttribute("Kernel32.dll", SetLastError := true>]
Public Shared Function VirtualQuery (
address As UIntPtr,
ByRef refBuffer As MemoryBasicInformation64,
length As IntPtr
) As IntPtr
Dim address As UIntPtr
Dim refBuffer As MemoryBasicInformation64
Dim length As IntPtr
Dim returnValue As IntPtr
returnValue = Kernel32.VirtualQuery(address,
refBuffer, length)
public:
[DllImportAttribute(L"Kernel32.dll", SetLastError = true)]
static IntPtr VirtualQuery(
UIntPtr address,
MemoryBasicInformation64% refBuffer,
IntPtr length
)
[<DllImportAttribute("Kernel32.dll", SetLastError = true)>]
static member VirtualQuery :
address : UIntPtr *
refBuffer : MemoryBasicInformation64 byref *
length : IntPtr -> IntPtr
No code example is currently available or this language may not be supported.
- address UIntPtr
-
A pointer to the base address of the region of pages to be queried.
This value is rounded down to the next page boundary.
To determine the size of a page on the host computer, use the GetSystemInfo function.
- refBuffer MemoryBasicInformation64
-
A pointer to a MemoryBasicInformation64 structure in which information about the
specified page range is returned.
- length IntPtr
-
The size of the buffer pointed to by the lpBuffer parameter, in bytes.
IntPtr
The return value is the actual number of bytes returned in the information buffer
If the function fails, the return value is 0.
To get extended error information, call
GetLastWin32Error.