Delen via


GetComponentIDFromCLSSPEC function

Gets a string component ID from information contained in a union uCLSSPEC.

Syntax

HRESULT GetComponentIDFromCLSSPEC(
  _In_  uCLSSPEC *pClassSpec,
  _Out_ LPSTR    *ppszComponentID
);

Parameters

  • pClassSpec [in]
    A pointer to a union that provides ways of mapping to a CLSID.

  • ppszComponentID [out]
    A pointer to a string containing a component ID that is based on a uCLSSPEC, which is defined in sdk\inc\wtypes.h.

Return value

Returns one of the following values.

Return code Description
S_OK

The component ID was successfuly retrieved.

S_FALSE

The class or Mime is not part of an Internet Explorer feature.

E_INVALIDARG

The pClassspec parameter contains invalid data.

E_OUTOFMEMORY

The program does not have enough memory for successful operation.

 

Remarks

Note  The importance of this function degraded significantly after Microsoft Internet Explorer 6 SP1b and Windows XP, due to a lack of dependence on just-in-time (JIT) in components.

 

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Product

Internet Explorer 4.0

Header

Urlmon.h

Library

Urlmon.lib

DLL

Urlmon.dll