PssCaptureSnapshot function

Captures a snapshot of a target process.

Syntax

DWORD PssCaptureSnapshot(
  HANDLE            ProcessHandle,
  PSS_CAPTURE_FLAGS CaptureFlags,
  DWORD             ThreadContextFlags,
  HPSS              *SnapshotHandle
);

Parameters

ProcessHandle

A handle to the target process.

CaptureFlags

Flags that specify what to capture. For more information, see PSS_CAPTURE_FLAGS.

ThreadContextFlags

The CONTEXT record flags to capture if CaptureFlags specifies thread contexts.

SnapshotHandle

A handle to the snapshot that this function captures.

Return Value

This function returns ERROR_SUCCESS on success.

All error codes are defined in winerror.h. Use FormatMessage with the FORMAT_MESSAGE_FROM_SYSTEM flag to get a message for an error code.

Requirements

   
Windows version Windows 8.1 [desktop apps only] Windows Server 2012 R2 [desktop apps only]
Target Platform Windows
Header processsnapshot.h
DLL Kernel32.dll