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

> Abre um identificador para recursos compartilhados, heaps compartilhados e fences compartilhados, usando Name e Access.

Abre um identificador para recursos compartilhados, heaps compartilhados e fences compartilhados, usando Name e Access.

## Sintaxe

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

### Parâmetros

*Name \[in]*\
Tipo: LPCWSTR

O nome que foi opcionalmente passado como o parâmetro <i>Name</i> na chamada para
[ID3D12Device::CreateSharedHandle](/pt-BR/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_createsharedhandle_public).

*Access*\
Tipo: DWORD

O nível de acesso que foi especificado no parâmetro <i>Access</i> na chamada para
[ID3D12Device::CreateSharedHandle](/pt-BR/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_createsharedhandle_public).

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

Ponteiro para o identificador compartilhado.

### Valor retornado

Tipo: HRESULT

Este método retorna um dos [Códigos de retorno do Direct3D 12](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/d3d12-graphics-reference-returnvalues).

## Requisitos

**Cabeçalho:** d3d12\_xs.h ou d3d12\_x.h\
**Biblioteca:** d3d12\_xs.lib ou d3d12\_x.lib\
**Plataformas com suporte**: consoles XBOX Series e família XBOX One

## Confira também

[ID3D12Device](/pt-BR/reference/graphics/d3d12_x/interfaces/id3d12device/id3d12device)


## Related topics

- [OpenSharedHandle](/pt-BR/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_opensharedhandle_public.md)
- [Update Player Shared Secret](/api-reference/authentication/update-player-shared-secret.md)
- [Get Player Shared Secrets](/api-reference/authentication/get-player-shared-secrets.md)
- [Create Player Shared Secret](/api-reference/authentication/create-player-shared-secret.md)
- [IGameInputDispatcher::OpenWaitHandle](/pt-BR/reference/input/gameinput/interfaces/IGameInputDispatcher/methods/igameinputdispatcher_openwaithandle.md)
