PssNtDuplicateSnapshot - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTPSAPI_H
// Reserve objects
#if (PHNT_MODE != PHNT_MODE_KERNEL)
#if (PHNT_VERSION >= PHNT_WINBLUE)

// rev
/**
 * Duplicates a process snapshot from one process to another.
 * 
 * @param SourceProcessHandle Handle to the source process.
 * @param SnapshotHandle Handle to the snapshot to duplicate.
 * @param TargetProcessHandle Handle to the target process.
 * @param TargetSnapshotHandle Pointer to a variable that receives the duplicated snapshot handle.
 * @param Flags Optional flags for duplication.
 * @return NTSTATUS Successful or errant status.
 */
NTSYSAPI
NTSTATUS
NTAPI
PssNtDuplicateSnapshot(
    _In_ HANDLE SourceProcessHandle,
    _In_ HANDLE SnapshotHandle,
    _In_ HANDLE TargetProcessHandle,
    _Out_ PHANDLE TargetSnapshotHandle,
    _In_opt_ PSSNT_DUPLICATE_FLAGS Flags
    );

#endif
#endif
#endif

View code on GitHub

No description available.