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

# XAppCaptureCancelUserRecord

> XAppCaptureCancelUserRecord

# XAppCaptureCancelUserRecord

Stop an ongoing user recording started via [XAppCaptureStartUserRecord](/reference/system/xappcapture/functions/xappcapturestartuserrecord) 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](/reference/system/xappcapture/xappcapture_errors) for non-`S_OK` return values.

## Remarks

Assumes localIdOfUserRecording holds a local ID returned from [XAppCaptureStartUserRecord](/reference/system/xappcapture/functions/xappcapturestartuserrecord).

```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](/reference/system/xappcapture/xappcapture_members)


## Related topics

- [XAppCaptureStartUserRecord](/reference/system/xappcapture/functions/xappcapturestartuserrecord.md)
- [XAppCapture](/reference/system/xappcapture/xappcapture_members.md)
- [XAppCaptureStopUserRecord](/reference/system/xappcapture/functions/xappcapturestopuserrecord.md)
- [XAppCaptureUserRecordingResult](/reference/system/xappcapture/structs/xappcaptureuserrecordingresult.md)
- [XAppCaptureEnableRecord](/reference/system/xappcapture/functions/xappcaptureenablerecord.md)
