Eksportér (0) Udskriv
Udvid alt
EN
Dette indhold er ikke tilgængeligt på dit sprog, men her er den engelske version.

QueryPathOfRegTypeLib Function

Retrieves the path of a registered type library.

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

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.

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

Return value

Meaning

S_OK

Success.

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.

Vis:
© 2014 Microsoft