contents   index   previous   next



ProgIDToCLSID

 

f90VB Modules

 

f90VBDefs, f90VBAutomation

Summary

 

Checks the registry and returns the ClassID (CLSID) of an Automation-capable object. If the object is not registered, an error condition occurs.

Syntax

 

subroutine ProgIDToCLSID (ProgID, CLSID, iRet)

character(len=*),intent(in):: ProgID
type(GUID),intent(out)::  CLSID
integer(HRESULT_KIND),intent(out),optional:: iRet

Arguments

 

ProgID [Input]

The Programmatic Identifier (ProgID) of an object.

CLSID [Output]

A Global Unique Identifier (GUID) structure with the Class ID corresponding to the passed Programmatic ID.

iRet [Output/Optional]

Upon return, iRet contains S_OK or a negative error code. See comments for more information.

Comments

 

Argument iRet

 

Indicates success or failure of the subroutine. If the subroutine is successful, S_OK is returned in argument iRet. If the subroutine fails, iRet contains E_UNEXPECTED or another negative value indicating the nature of the error.

Examples

 

See examples for GUIDToStr.

Related Topics

 

For information about: See:
Obtaining a Program ID from its Class ID CLSIDToProgID

 


PropertyGet