Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CLSIDFromProgID

Windows CE .NET

This function looks up a class identifier in the registry, given a programmatic identifier.

HRESULT CLSIDFromProgID(
  LPCOLESTR lpszProgID, 
  LPCLSID pclsid
);

Parameters

lpszProgID
[in] Long pointer to the ProgID whose class identifier is requested.
pclsid
[out] Pointer to the retrieved class identifier on return.

Return Values

One of the values described in the following table is returned.

Value Description
S_OK The class identifier was retrieved successfully.
CO_E_CLASSSTRING The registered class identifier for the ProgID is invalid.
REGDB_E_WRITEREGDB An error occurred writing the class identifier to the registry.
REGDB_E_CLASSNOTREG The class identifier for the ProgID cannot be found in the registry.

Remarks

Given a ProgID, CLSIDFromProgID looks up its associated class identifier in the registry.

To determine whether the platform supports this function, see Determining Supported COM APIs.

Requirements

OS Versions: Windows CE 2.10 and later.
Header: Objbase.h.
Link Library: Ole32.lib.


Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft