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

# XblPresenceRecordGetXuid

> XblPresenceRecordGetXuid

Get the Xuid for the user a presence record is associated with.

## Syntax

```cpp theme={null}
HRESULT XblPresenceRecordGetXuid(  
         XblPresenceRecordHandle handle,  
         uint64_t* xuid  
)  
```

### Parameters

*handle*   \_In\_\
Type: [XblPresenceRecordHandle](https://docs.xbox.com/reference/live/xsapi-c/presence_c/handles/xblpresencerecordhandle.md)

Handle for the presence record returned from a GetPresence API.

*xuid*   \_Out\_\
Type: uint64\_t\*

Passes back the Xuid the record is associated with.

### Return value

Type: HRESULT

HRESULT return code for this API operation.

## Requirements

**Header:** presence\_c.h

**Library:** Microsoft.Xbox.Services.142.C.lib or Microsoft.Xbox.Services.143.C.lib

## See also

[presence\_c](https://docs.xbox.com/reference/live/xsapi-c/presence_c/presence_c_members.md)


## Related topics

- [presence_c (contents)](https://docs.xbox.com/reference/live/xsapi-c/presence_c/presence_c_members.md)
- [XblPresenceRecordGetDeviceRecords](https://docs.xbox.com/reference/live/xsapi-c/presence_c/functions/xblpresencerecordgetdevicerecords.md)
- [XblPresenceRecordGetUserState](https://docs.xbox.com/reference/live/xsapi-c/presence_c/functions/xblpresencerecordgetuserstate.md)
- [PresenceRecord (JSON)](https://docs.xbox.com/reference/live/rest/json/json-presencerecord.md)
- [GET (/users/xuid({xuid})/groups/{moniker} )](https://docs.xbox.com/reference/live/rest/uri/presence/uri-usersxuidgroupsmonikerget.md)
