Kernel32PssDuplicateSnapshot Method
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 PssDuplicateSnapshot(
IntPtr sourceProcessHandle,
IntPtr snapshotHandle,
IntPtr targetProcessHandle,
out IntPtr refTargetSnapshotHandle,
PssDuplicateFlags flags
)
<DllImportAttribute("Kernel32.dll", ExactSpelling := true>]
Public Shared Function PssDuplicateSnapshot (
sourceProcessHandle As IntPtr,
snapshotHandle As IntPtr,
targetProcessHandle As IntPtr,
<OutAttribute> ByRef refTargetSnapshotHandle As IntPtr,
flags As PssDuplicateFlags
) As Win32ErrorCode
Dim sourceProcessHandle As IntPtr
Dim snapshotHandle As IntPtr
Dim targetProcessHandle As IntPtr
Dim refTargetSnapshotHandle As IntPtr
Dim flags As PssDuplicateFlags
Dim returnValue As Win32ErrorCode
returnValue = Kernel32.PssDuplicateSnapshot(sourceProcessHandle,
snapshotHandle, targetProcessHandle,
refTargetSnapshotHandle, flags)
public:
[DllImportAttribute(L"Kernel32.dll", ExactSpelling = true)]
static Win32ErrorCode PssDuplicateSnapshot(
IntPtr sourceProcessHandle,
IntPtr snapshotHandle,
IntPtr targetProcessHandle,
[OutAttribute] IntPtr% refTargetSnapshotHandle,
PssDuplicateFlags flags
)
[<DllImportAttribute("Kernel32.dll", ExactSpelling = true)>]
static member PssDuplicateSnapshot :
sourceProcessHandle : IntPtr *
snapshotHandle : IntPtr *
targetProcessHandle : IntPtr *
refTargetSnapshotHandle : IntPtr byref *
flags : PssDuplicateFlags -> Win32ErrorCode
No code example is currently available or this language may not be supported.
- sourceProcessHandle IntPtr
-
A handle to the source process from which the original snapshot was captured.
The handle must have VirtualMemoryRead and
DuplicateHandle rights.
- snapshotHandle IntPtr
-
A handle to the snapshot to duplicate. This handle must be in the context of the source process.
- targetProcessHandle IntPtr
-
A handle to the target process that receives the duplicate snapshot.
The handle must have VirtualMemoryOperation,
VirtualMemoryWrite,
and DuplicateHandle rights.
- refTargetSnapshotHandle IntPtr
-
A handle to the duplicate snapshot that this function creates, in the context of the target process.
- flags PssDuplicateFlags
-
The duplication flags.
Win32ErrorCode
If the function succeeds, the return value is
ERROR_SUCCESS;
othwerise, a different
Win32ErrorCode value.