|
ProcessHelperGetProcessMemoryInfo Method |
Namespace: Xcalibur.NativeMethods.V2.ProcessesAssembly: 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
)
<DllImportAttribute("psapi.dll", SetLastError := true>]
Public Shared Function GetProcessMemoryInfo (
processHandle As IntPtr,
<OutAttribute> ByRef counters As ProcessMemoryCountersEx,
size As UInteger
) As Boolean
public:
[DllImportAttribute(L"psapi.dll", SetLastError = true)]
static bool GetProcessMemoryInfo(
IntPtr processHandle,
[OutAttribute] ProcessMemoryCountersEx% counters,
unsigned int size
)
[<DllImportAttribute("psapi.dll", SetLastError = true)>]
static member GetProcessMemoryInfo :
processHandle : IntPtr *
counters : ProcessMemoryCountersEx byref *
size : uint32 -> bool
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
BooleanIf the function fails, the return value is zero. To get extended error
information, call .
See Also