IResourceManager3::ParseRsrcEx

Description

This function parses a resource string to get extended interface information. It should succeed for all strings returned by FindRsrc and recognized by Open. This operation is useful if you want to know what interface a given VISA address (resource descriptor) would use without actually opening a session to it.

VB Prototype

ParseRsrcEx(
  ResourceName As String,
  pInterfaceType As Short,
  pInterfaceNumber As Short,
  pSessionType As String,
  pUnaliasedExpandedResourceName As String,
  pAliasIfExists As String
)

C++ Prototype

HRESULT ParseRsrcEx(
  BSTR ResourceName,
  short* pInterfaceType,
  short* pInterfaceNumber,
  BSTR* pSessionType,
  BSTR* pUnaliasedExpandedResourceName,
  BSTR* pAliasIfExists
);

Parameters

ResourceName

The VISA address string.

pInterfaceType

The interface type number of the resource.

pInterfaceNumber

The interface number of the resource.

pSessionType

The session type of the resource.

pUnaliasedExpandedResourceName

The expanded version of the given resource string. The format should be similar to the VISA-defined canonical resource name.

pAliasIfExists

Specifies the user-defined alias for the given resource string, if a VISA implementation allows aliases and an alias exists for the given resource string.

Return Value

Refer to the table of return codes.

See Also

SoftwareManufacturerName, SoftwareManufacturerID, Description, ComponentVersion, ProgID, SpecVersion, FindRsrc, Open, ParseRsrc, ParseRsrcEx, IResourceManager3 Overview