Click or drag to resize

GetSessionType

Gets the VISA I/O session type.

virtual HRESULT GetSessionType(CString& strType) abstract;
Parameters
strType

[out] VISA I/O session type.

Return Value

Returns S_OK if successful, otherwise a failure HRESULT.

Example

The following example demonstrates use of the GetSessionType function.

C++
// CoAcme4321.cpp
STDMETHODIMP Acme4321::IAcme4321_OnFinalInitialize()
{
  HRESULT hr = S_OK;

  CString strType;
  hr = io.SessionInfo.GetSessionType(&strType);

  return hr;
}
See Also

Download a complete CHM version of this documentation here.