IResourceManager::ParseRsrc

Description

This operation parses a resource string to verify its validity. 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 resource descriptor would use without actually opening a session to it.

VB Prototype

ParseRsrc(
  ResourceName As String,
  pInterfaceType As Short,
  pInterfaceNumber As Short,
  pSessionType As String
)

C++ Prototype

HRESULT ParseRsrc(
  BSTR ResourceName,
  short* pInterfaceType,
  short* pInterfaceNumber,
  BSTR* pSessionType
);

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.

Return Value

Refer to the table of return codes.

See Also

SoftwareManufacturerName, SoftwareManufacturerID, Description, ComponentVersion, ProgID, SpecVersion, FindRsrc, Open, ParseRsrc, IResourceManager Overview