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

# OpenSharedHandleByName

> Name と Access を使用して、共有リソース、共有ヒープ、および共有フェンスのハンドルを開きます。

Name と Access を使用して、共有リソース、共有ヒープ、および共有フェンスのハンドルを開きます。

## 構文

```cpp theme={null}
HRESULT OpenSharedHandleByName(
    LPCWSTR Name,
    DWORD Access,
    HANDLE  pNTHandle
)
```

### パラメーター

*Name \[in]*\
型: LPCWSTR

[ID3D12Device::CreateSharedHandle](/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_createsharedhandle_public) の呼び出しで <i>Name</i> パラメーターとして省略可能に渡された名前。

*Access*\
型: DWORD

[ID3D12Device::CreateSharedHandle](/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_createsharedhandle_public) の呼び出しで <i>Access</i> パラメーターに指定されたアクセス レベル。

*pNTHandle \[out]*\
型: HANDLE \*

共有ハンドルへのポインター。

### 戻り値

型: HRESULT

このメソッドは [Direct3D 12 の戻りコード](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/d3d12-graphics-reference-returnvalues) のいずれかを返します。

## 要件

**ヘッダー:** d3d12\_xs.h または d3d12\_x.h\
**ライブラリ:** d3d12\_xs.lib または d3d12\_x.lib\
**サポートされているプラットフォーム**: XBOX Series 本体および XBOX One ファミリ

## 関連項目

[ID3D12Device](/reference/graphics/d3d12_x/interfaces/id3d12device/id3d12device)


## Related topics

- [OpenSharedHandle](/ja-jp/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_opensharedhandle_public.md)
- [IGameInputDispatcher::OpenWaitHandle](/ja-jp/reference/input/gameinput/interfaces/IGameInputDispatcher/methods/igameinputdispatcher_openwaithandle.md)
- [OpenSSL ライセンス](/ja-jp/services/playfab/sdks/cocos2d-x/Licenses/openssl-license.md)
- [SHARED_SHAPE_CONTEXTS](/ja-jp/reference/audio/acphal/structs/shared_shape_contexts.md)
- [PFAuthenticationLoginWithOpenIdConnectAsync](/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithopenidconnectasync.md)
