Skip to content

GetInterfaceName

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

virtual HRESULT GetInterfaceName(CString& strName) abstract;

strName

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

Returns S_OK if successful, otherwise a failure HRESULT.

The following example demonstrates use of the GetResourceName function.

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