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

# OpenWaitHandle

> IGameInputDispatcher::OpenWaitHandle

Returns a wait handle that signals when work is available in the dispatcher queue.

## Syntax

```cpp theme={null}
HRESULT OpenWaitHandle(
    HANDLE* waitHandle
);
```

### Parameters

*waitHandle*   \_Outptr\_result\_nullonfailure\_\
Type: HANDLE\*

The wait handle that is returned.

### Return value

Type: HRESULT

Function result

### Remarks

The `IGameInputDispatcher::OpenWaitHandle` returns a wait handle. This method signals when work is available in the dispatcher queue. Call the  [CloseHandle](https://learn.microsoft.com/windows/desktop/api/handleapi/nf-handleapi-closehandle) function on the handle when it is no longer needed. For intermediate and advanced use-cases of the GameInput API, see [Advanced GameInput topics](https://docs.xbox.com/build/core-features/common/input/advanced/input-advanced-topics.md).

## Requirements

**Header:** GameInput.h

**Library:** xgameruntime.lib

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## See also

[Overview of GameInput](https://docs.xbox.com/build/core-features/common/input/overviews/input-overview.md)\
[IGameInputDispatcher](https://docs.xbox.com/reference/input/gameinput/interfaces/IGameInputDispatcher/igameinputdispatcher.md)

## Version History

| Version | Changes |
| - | - |
| **v0** | Introduced. |


## Related topics

- [IGameInputDispatcher (Interface contents)](https://docs.xbox.com/reference/input/gameinput/interfaces/IGameInputDispatcher/igameinputdispatcher.md)
- [IGameInput::CreateDispatcher](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinput/methods/igameinput_createdispatcher.md)
- [GameInput work queues](https://docs.xbox.com/build/core-features/common/input/advanced/input-work-queues.md)
- [Wait](https://docs.xbox.com/reference/graphics/d3d12/interfaces/id3d12commandqueue/methods/id3d12commandqueue_wait_public.md)
- [MsQuic](https://docs.xbox.com/build/console-features/networking/game-mesh/msquic-intro-networking.md)
