> ## 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 um PFEntityHandle.

Duplica um PFEntityHandle.

## Sintaxe

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

### Parâmetros

**`entityHandle`**   PFEntityHandle

Identificador de entidade a ser duplicado.

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

O identificador duplicado.

### Valor de retorno

Tipo: HRESULT

Código de resultado desta operação de API.

## Comentários

Tanto o identificador duplicado quanto o identificador original precisam ser fechados com PFEntityCloseHandle quando não forem mais necessários.

## Requisitos

**Cabeçalho:** PFEntity.h

## Confira também

[Membros de PFEntity](/pt-BR/services/playfab/api-references/c/pfentity/pfentity_members)


## Related topics

- [Identificadores de entidade](/pt-BR/services/playfab/sdks/c/entity-handles.md)
- [Visão geral da API C de serviços - PFEntity.h](/pt-BR/services/playfab/api-references/c/pfentity/pfentity_members.md)
- [XUserDuplicateHandle](/pt-BR/reference/system/xuser/functions/xuserduplicatehandle.md)
- [WdDuplicateCancellationHandle](/pt-BR/reference/remoting/functions/wdduplicatecancellationhandle.md)
- [XTaskQueueDuplicateHandle](/pt-BR/reference/system/xtaskqueue/functions/xtaskqueueduplicatehandle.md)
