QueryPathOfRegTypeLib

HRESULT QueryPathOfRegTypeLib( 
  REFGUID  guid,          
  unsigned short  wVerMajor,  
  unsigned short  wVerMinor,  
  LCID  lcid,             
  LPBSTR  lpbstrPathName  
);
 

Retrieves the path of a registered type library.

Parameters

guid
GUID of the library whose path is to be queried.
wVerMajor
Major version number of the library whose path is to be queried.
wVerMinor
Minor version number of the library whose path is to be queried.
lcid
National language code for the library whose path is to be queried.
lpbstrPathName
Caller-allocated BSTR in which the type library name is returned.

Return Value

The return value obtained from the returned HRESULT is one of the following:

Return value Meaning
S_OK Success.

Comments

Returns the fully qualified file name that is specified for the type library in the registry. The caller allocates the BSTR that is passed in, and must free it after use.

QuickInfo

  Windows NT: Use version 3.1 and later.
  Windows: Use Windows 95 and later.
  Header: Declared in oleauto.h.
  Import Library: Link with oleaut32.lib.