IXStudioSession::Connect Method

Important The XStudio native C nano-COM APIs have been deprecated in favor of the KStudio native C nano-COM APIs.
Connects to the Xbox Studio service on the target console.

Syntax

public:
HRESULT Connect(
         const wchar_t *address
)  

Parameters

address
Type: wchar_t *

[in] Name or IP address of the console to connect to.

Return value

Type: HRESULT 

S_OK if successful; an error code otherwise.

Remarks

Applications running on the console should not, and need not, call Connect. Doing so returns E_XSTUDIO_INVALID_OPERATION.

Call Connect only from an application running on the development computer, in order to obtain a connection to the target console.

Requirements

Header: Declared in xstudio.h.

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