IXStudioSession::CreateRecording Method

Important The XStudio native C nano-COM APIs have been deprecated in favor of the KStudio native C nano-COM APIs.
Creates a recording interface to record sensor events into an Xbox Event File (XEF).

Syntax

public:
HRESULT CreateRecording(
         XSTUDIO_LOCATION fileLocation,
         const wchar_t *filePath,
         const GUID *pStreamTypes,
         UINT32 streamTypeCount,
         IXStudioRecording **ppRecording
)  

Parameters

fileLocation
Type: XSTUDIO_LOCATION 

[in] Location (console or development computer) of the Xbox Event File (XEF).

filePath
Type: wchar_t *

[in] Path and filename of the Xbox Event File (XEF) to record to.

pStreamTypes
Type: GUID *

[in] Array of GUIDs that specify the stream types to record.

streamTypeCount
Type: UINT32 

[in] Number of stream type GUIDs in pStreamTypeGuids.

ppRecording
Type: IXStudioRecording **

[out] Pointer to an IXStudioRecording pointer that receives the recording interface.

Return value

Type: HRESULT 

S_OK if successful; an error code otherwise.

Remarks

When done using the recording interface, call Release.

Requirements

Header: Declared in xstudio.h.

Library: Use xstudioclient.lib (console) or xstudioservice.lib (desktop).