Skip to content

GetSessionType

Gets the VISA I/O session type.

virtual HRESULT GetSessionType(CString& strType) abstract;

strType

[out] VISA I/O session type.

Returns S_OK if successful, otherwise a failure HRESULT.

The following example demonstrates use of the GetSessionType function.

CoAcme4321.cpp
STDMETHODIMP Acme4321::IAcme4321_OnFinalInitialize()
{
HRESULT hr = S_OK;
CString strType;
hr = io.SessionInfo.GetSessionType(&strType);
return hr;
}