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.
HRESULT XStudioCreateSession(
IXStudioSession **ppSession
)
ppSession
Type: IXStudioSession **
[out] Pointer to an IXStudioSession pointer that receives the session interface.
Type: HRESULTÂ
S_OK if successful; an error code otherwise.
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.
Header: Declared in xstudio.h.
Library: Use xstudioclient.lib (console) or xstudioservice.lib (desktop).