Click or drag to resize
Xcalibur Systems LLC Logo

ProcessHelperGetProcessMemoryInfo Method

Retrieves information about the memory usage of the specified process.

GetProcessMemoryInfo function


Namespace: Xcalibur.NativeMethods.V2.Processes
Assembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax
[DllImportAttribute("psapi.dll", SetLastError = true)]
public static bool GetProcessMemoryInfo(
	IntPtr processHandle,
	out ProcessMemoryCountersEx counters,
	uint size
)

Parameters

processHandle  IntPtr
A handle to the process. The handle must have the or access right and the access right.
counters  ProcessMemoryCountersEx
A pointer to the PROCESS_MEMORY_COUNTERS or structure that receives information about the memory usage of the process.
size  UInt32
The size of the counters structure, in bytes.

Return Value

Boolean
If the function fails, the return value is zero. To get extended error information, call .
See Also