XStudioCreateSession

Important The XStudio native C nano-COM APIs have been deprecated in favor of the KStudio native C nano-COM APIs.
On Xbox, this method creates an out-of-process connection to the service; on PC, this method creates the PC service.

Syntax

HRESULT XStudioCreateSession(
         IXStudioSession **ppSession
)  

Parameters

ppSession
Type: IXStudioSession **

[out] Pointer to an IXStudioSession pointer that receives the session interface.

Return value

Type: HRESULT 

S_OK if successful; an error code otherwise.

Remarks

For sessions created on the development computer, call Connect to connect to the console before calling other session methods that rely on a console connection. Sessions created on the console need not, and should not, call Connect. IXStudioFileIterator can read local XEF files without requiring a console connection.

Requirements

Header: Declared in xstudio.h.

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