Syntax
Parameters
startTimestamp _In_opt_Type: const SYSTEMTIME * The timestamp to start recording from. This parameter can be null, in which case the system will automatically calculate the start time as durationInMilliseconds in the past and the recording will contain past activities. durationInMilliseconds _In_
Type: uint64_t Length of recording in milliseconds. result _Out_
Type: XAppCaptureLocalResult * On function completion, contains the capture results. See XAppCaptureReadLocalStream for how the resulting recording can be read.
Return value
Type: HRESULT Function result. The function will return E_ACCESSDENIED if the user’s GameDVR setting forbids games from making captures.Remarks
There are two ways to pass in the startTimestamp parameter to record past activity. In the first, null is passed. The system will automatically calculate the timestamp and record past activities that are durationInMilliseconds long from now.Older clips will be deleted when allotted space is filled to make room for new clips. Use PLS (Persistent Local Storage), connected storage (e.g. XGameSave or XGameSaveFiles), or a similar storage system in order to retain clips for a set period of time.
