Skip to content

GetInterfaceType

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

virtual HRESULT GetInterfaceType(VisaInterfaceType* peType) abstract;

peType

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

Returns S_OK if successful, otherwise a failure HRESULT.

The following example demonstrates use of the GetInterfaceType function.

CoAcme4321.cpp
STDMETHODIMP Acme4321::IAcme4321_OnFinalInitialize()
{
HRESULT hr = S_OK;
VisaInterfaceType eIntfType;
hr = io.SessionInfo.GetInterfaceType(&eIntfType);
return hr;
}