Skip to content

GetInterfaceNumber

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

virtual HRESULT GetInterfaceNumber(UINT16* pusNumber) abstract;

pusNumber

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

Returns S_OK if successful, otherwise a failure HRESULT.

The following example demonstrates use of the GetInterfaceNumber function.

CoAcme4321.cpp
STDMETHODIMP Acme4321::IAcme4321_OnFinalInitialize()
{
HRESULT hr = S_OK;
USHORT usIntfNum;
hr = io.SessionInfo.GetInterfaceNumber(&usIntfNum);
return hr;
}