IXStudioSession::Disconnect Method

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

Syntax

public:
HRESULT Disconnect()  

Return value

Type: HRESULT 

S_OK if successful; an error code otherwise.

Remarks

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

Call Disconnect only from an application running on the development computer, in order to disconnect from the target console.

Requirements

Header: Declared in xstudio.h.

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