> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PFEntityDuplicateHandle

> Duplica un PFEntityHandle.

Duplica un PFEntityHandle.

## Sintaxis

```cpp theme={null}
HRESULT PFEntityDuplicateHandle(  
    PFEntityHandle entityHandle,  
    PFEntityHandle* duplicatedEntityHandle  
)  
```

### Parámetros

**`entityHandle`**   PFEntityHandle

Identificador de entidad que se va a duplicar.

**`duplicatedEntityHandle`**   PFEntityHandle\*<br />*output*

El identificador duplicado.

### Valor devuelto

Tipo: HRESULT

Código de resultado de esta operación de API.

## Comentarios

Tanto el identificador duplicado como el identificador original deben cerrarse con PFEntityCloseHandle cuando ya no se necesiten.

## Requisitos

**Encabezado:** PFEntity.h

## Consulte también

[Miembros de PFEntity](/services/playfab/api-references/c/pfentity/pfentity_members)


## Related topics

- [Identificadores de entidad](/es/services/playfab/sdks/c/entity-handles.md)
- [Información general de la API de C de Services - PFEntity.h](/es/services/playfab/api-references/c/pfentity/pfentity_members.md)
- [XUserDuplicateHandle](/es/reference/system/xuser/functions/xuserduplicatehandle.md)
- [XTaskQueueDuplicateHandle](/es/reference/system/xtaskqueue/functions/xtaskqueueduplicatehandle.md)
- [WdDuplicateCancellationHandle](/es/reference/remoting/functions/wdduplicatecancellationhandle.md)
