Click or drag to resize

GetInterfaceType

Gets the VISA interface type of the I/O session.


				virtual HRESULT GetInterfaceType(VisaInterfaceType* peType) abstract;
			
Parameters
peType

[out] VISA interface type of the I/O session.

Return Value

Returns S_OK if successful, otherwise a failure HRESULT.

Example

The following example demonstrates use of the GetInterfaceType function.

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

  VisaInterfaceType eIntfType;
  hr = io.SessionInfo.GetInterfaceType(&eIntfType);

  return hr;
}
See Also

Download a complete CHM version of this documentation here.