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

# XblMultiplayerSearchHandleGetId

> XblMultiplayerSearchHandleGetId

# XblMultiplayerSearchHandleGetId

Get the Id for the search handle object.

## Syntax

```cpp theme={null}
HRESULT XblMultiplayerSearchHandleGetId(  
         XblMultiplayerSearchHandle handle,  
         const char** id  
)  
```

### Parameters

*handle*   \_In\_\
Type: [XblMultiplayerSearchHandle](/reference/live/xsapi-c/multiplayer_c/handles/xblmultiplayersearchhandle)

Handle to the search handle details.

*id*   \_Out\_\
Type: char\*\*

Passes back a search handle Id. The memory for the pointer will remain valid for the life of the XblMultiplayerSessionHandle object until it is closed.

### Return value

Type: HRESULT

HRESULT return code for this API operation.

## Requirements

**Header:** multiplayer\_c.h

**Library:** Microsoft.Xbox.Services.14x.GDK.C.lib

## See also

[multiplayer\_c](/reference/live/xsapi-c/multiplayer_c/multiplayer_c_members)


## Related topics

- [Moving from MPSD to PlayFab Multiplayer and MPA](/services/xbox-services/multiplayer/mpsd/concepts/live-mpsd-to-mlp.md)
- [XblMultiplayerGetSearchHandlesAsync](/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayergetsearchhandlesasync.md)
- [XblMultiplayerDeleteSearchHandleAsync](/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayerdeletesearchhandleasync.md)
- [XblMultiplayerGetSearchHandlesResult](/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayergetsearchhandlesresult.md)
- [XblMultiplayerSearchHandleGetTags](/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersearchhandlegettags.md)
