|
ProcessHelperCreateToolhelp32Snapshot Method |
Namespace: Xcalibur.NativeMethods.V2.ProcessesAssembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax [DllImportAttribute("kernel32.dll", SetLastError = true)]
public static IntPtr CreateToolhelp32Snapshot(
SnapshotFlags flags,
uint processId
)
<DllImportAttribute("kernel32.dll", SetLastError := true>]
Public Shared Function CreateToolhelp32Snapshot (
flags As SnapshotFlags,
processId As UInteger
) As IntPtr
public:
[DllImportAttribute(L"kernel32.dll", SetLastError = true)]
static IntPtr CreateToolhelp32Snapshot(
SnapshotFlags flags,
unsigned int processId
)
[<DllImportAttribute("kernel32.dll", SetLastError = true)>]
static member CreateToolhelp32Snapshot :
flags : SnapshotFlags *
processId : uint32 -> IntPtr
Parameters
- flags SnapshotFlags
- The portions of the system to be included in the snapshot. This
parameter can be one or more of the following values. See also .
- processId UInt32
- The process identifier of the process to be included in the
snapshot. This parameter can be zero to indicate the current process. This parameter is
used when the ,
, , or
value is specified. Otherwise, it is ignored and all
processes are included in the snapshot.
Return Value
IntPtrIf the function succeeds, it returns an open handle to the specified snapshot. If
the function fails, it returns INVALID_HANDLE_VALUE (IntPtr(-1)).To get extended error
information, call . Possible error codes include
.
See Also