> ## 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

> PFEntityHandle を複製します。

PFEntityHandle を複製します。

## 構文

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

### パラメーター

**`entityHandle`**   PFEntityHandle

複製するエンティティ ハンドル。

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

複製されたハンドル。

### 戻り値

型: HRESULT

この API 操作の結果コード。

## 解説

複製されたハンドルと元のハンドルの両方について、不要になった時点で PFEntityCloseHandle を使用して閉じる必要があります。

## 要件

**ヘッダー:** PFEntity.h

## 関連項目

[PFEntity メンバー](/services/playfab/api-references/c/pfentity/pfentity_members)


## Related topics

- [エンティティハンドル](/ja-jp/services/playfab/sdks/c/entity-handles.md)
- [Services C API overview - PFEntity.h](/ja-jp/services/playfab/api-references/c/pfentity/pfentity_members.md)
- [XUserDuplicateHandle](/ja-jp/reference/system/xuser/functions/xuserduplicatehandle.md)
- [XTaskQueueDuplicateHandle](/ja-jp/reference/system/xtaskqueue/functions/xtaskqueueduplicatehandle.md)
- [WdDuplicateCancellationHandle](/ja-jp/reference/remoting/functions/wdduplicatecancellationhandle.md)
