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

# XAppCaptureEnableRecord

> XAppCaptureEnableRecord

Enables the xbox recording function which allows the user to take screenshot,record or broadcast the game via guide.

## Syntax

```cpp theme={null}
HRESULT XAppCaptureEnableRecord(
)  
```

### Parameters

### Return value

Type: HRESULT

Function result.

## Remarks

> [!NOTE]
>
> This function isn't safe to call on a time-sensitive thread. For more information, see [Time-sensitive threads](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads).

This function can be used to enable the inbuilt xbox recording/screenshot/broadcast functionality. If the functionality is enabled the user can take screenshot,record or broadcast the game using guide. I.e Press Home Button -> Take Screenshot/Recording.

The functionality is enabled by default. To disable the functionality the game can call [XAppCaptureDisableRecord](https://docs.xbox.com/reference/system/xappcapture/functions/xappcapturedisablerecord.md)

## Requirements

**Header:** XAppCapture.h

**Library:** xgameruntime.lib

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

## Conceptual documentation

* [Time-sensitive threads](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)

## See also

[XAppCaptureDisableRecord](https://docs.xbox.com/reference/system/xappcapture/functions/xappcapturedisablerecord.md)


## Related topics

- [XAppCaptureDisableRecord](https://docs.xbox.com/reference/system/xappcapture/functions/xappcapturedisablerecord.md)
- [XAppCapture (API contents)](https://docs.xbox.com/reference/system/xappcapture/xappcapture_members.md)
- [Using C# wrappers for GDK APIs in your Unity project](https://docs.xbox.com/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XAppCaptureRecordDiagnosticClip](https://docs.xbox.com/reference/system/xappcapture/functions/xappcapturerecorddiagnosticclip.md)
- [XAppCaptureRecordTimespan](https://docs.xbox.com/reference/system/xappcapture/functions/xappcapturerecordtimespan.md)
