Kernel32PssCaptureSnapshot Method
Captures a snapshot of a target 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", ExactSpelling = true)]
public static Win32ErrorCode PssCaptureSnapshot(
IntPtr processHandle,
PssCaptureFlags flags,
uint threadContextFlags,
out IntPtr refSnapshotHandle
)
<DllImportAttribute("Kernel32.dll", ExactSpelling := true>]
Public Shared Function PssCaptureSnapshot (
processHandle As IntPtr,
flags As PssCaptureFlags,
threadContextFlags As UInteger,
<OutAttribute> ByRef refSnapshotHandle As IntPtr
) As Win32ErrorCode
Dim processHandle As IntPtr
Dim flags As PssCaptureFlags
Dim threadContextFlags As UInteger
Dim refSnapshotHandle As IntPtr
Dim returnValue As Win32ErrorCode
returnValue = Kernel32.PssCaptureSnapshot(processHandle,
flags, threadContextFlags, refSnapshotHandle)
public:
[DllImportAttribute(L"Kernel32.dll", ExactSpelling = true)]
static Win32ErrorCode PssCaptureSnapshot(
IntPtr processHandle,
PssCaptureFlags flags,
unsigned int threadContextFlags,
[OutAttribute] IntPtr% refSnapshotHandle
)
[<DllImportAttribute("Kernel32.dll", ExactSpelling = true)>]
static member PssCaptureSnapshot :
processHandle : IntPtr *
flags : PssCaptureFlags *
threadContextFlags : uint32 *
refSnapshotHandle : IntPtr byref -> Win32ErrorCode
No code example is currently available or this language may not be supported.
- processHandle IntPtr
-
A handle to the target process.
- flags PssCaptureFlags
-
Flags that specify what to capture.
- threadContextFlags UInt32
-
The CONTEXT record flags to capture if flags parameter specifies thread contexts.
- refSnapshotHandle IntPtr
-
A handle to the snapshot that this function captures.
Win32ErrorCode
If the function succeeds, the return value is
ERROR_SUCCESS;
othwerise, a different
Win32ErrorCode value.