Click or drag to resize

GetResourceName

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

virtual HRESULT GetResourceName(CString& strName) abstract;
Parameters
strName

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

Return Value

Returns S_OK if successful, otherwise a failure HRESULT.

Example

The following example demonstrates use of the GetResourceName function.

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

  CString strResourceName;
  hr = io.SessionInfo.GetResourceName(strResourceName);

  return hr;
}

Download a complete CHM version of this documentation here.