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

# XAppCaptureCancelUserRecord

> XAppCaptureCancelUserRecord

Stop an ongoing user recording started via [XAppCaptureStartUserRecord](https://docs.xbox.com/reference/system/xappcapture/functions/xappcapturestartuserrecord.md) and specified by the inputted ID. Users will not receive a toast to indicate a recording has been stopped and the recording will not be saved to disk. Windows support for this API will be added in a future release.

## Syntax

```cpp theme={null}
HRESULT XAppCaptureCancelUserRecord(
    const char* localId
)
```

### Parameters

*localId* \_In\_\
Type: const char\*

Handle representing the user requesting the recording.

### Return value

Type: HRESULT

Function result. See [XAppCapture Error Codes](https://docs.xbox.com/reference/system/xappcapture/xappcapture_errors.md) for non-`S_OK` return values.

## Remarks

Assumes localIdOfUserRecording holds a local ID returned from [XAppCaptureStartUserRecord](https://docs.xbox.com/reference/system/xappcapture/functions/xappcapturestartuserrecord.md).

```cpp theme={null}

if (FAILED_LOG(XAppCaptureCancelUserRecord(localIdOfUserRecording)))
{
    return;
}

appLog.AddLog("Recording cancelled: localId = %s\n", localIdOfUserRecording);

```

## Requirements

**Header:** XAppCapture.h

**Library:** xgameruntime.lib

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

## See also

[XAppCapture members](https://docs.xbox.com/reference/system/xappcapture/xappcapture_members.md)


## Related topics

- [XAppCaptureStartUserRecord](https://docs.xbox.com/reference/system/xappcapture/functions/xappcapturestartuserrecord.md)
- [XAppCapture (API contents)](https://docs.xbox.com/reference/system/xappcapture/xappcapture_members.md)
- [XAppCaptureStopUserRecord](https://docs.xbox.com/reference/system/xappcapture/functions/xappcapturestopuserrecord.md)
- [XAppCaptureUserRecordingResult](https://docs.xbox.com/reference/system/xappcapture/structs/xappcaptureuserrecordingresult.md)
- [XAppCaptureEnableRecord](https://docs.xbox.com/reference/system/xappcapture/functions/xappcaptureenablerecord.md)
