Redigera

PFEntityDuplicateHandle

Important

XBOX Docs are now on docs.xbox.com! This page is kept as an archive and is no longer being updated. Visit our documentation on docs.xbox.com for the latest information and updates.

Visit the latest docs on docs.xbox.com

Duplicates a PFEntityHandle.

Syntax

HRESULT PFEntityDuplicateHandle(  
    PFEntityHandle entityHandle,  
    PFEntityHandle* duplicatedEntityHandle  
)  

Parameters

entityHandle   PFEntityHandle

Entity handle to duplicate.

duplicatedEntityHandle   PFEntityHandle*
output

The duplicated handle.

Return value

Type: HRESULT

Result code for this API operation.

Remarks

Both the duplicated handle and the original handle need to be closed with PFEntityCloseHandle when they are no longer needed.

Requirements

Header: PFEntity.h

See also

PFEntity members