COM
Expand Minimize
0 out of 4 rated this helpful - Rate this topic

CLSIDFromString function

Converts a string generated by the StringFromCLSID function back into the original CLSID.

Syntax


HRESULT CLSIDFromString(
  _In_   LPCOLESTR lpsz,
  _Out_  LPCLSID pclsid
);

Parameters

lpsz [in]

The string representation of the CLSID.

pclsid [out]

A pointer to the CLSID.

Return value

This function can return the standard return value E_INVALIDARG, as well as the following values.

Return codeDescription
NOERROR

The CLSID was obtained successfully.

CO_E_CLASSSTRING

The class string was improperly formatted.

REGDB_E_CLASSNOTREG

The CLSID corresponding to the class string was not found in the registry.

REGDB_E_READREGDB

The registry could not be opened for reading.

 

Remarks

Windows Phone 8: This API is supported.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps | Windows Store apps]

Minimum supported server

Windows 2000 Server [desktop apps | Windows Store apps]

Header

Objbase.h

Library

Ole32.lib

DLL

Ole32.dll

See also

CLSIDFromProgID
StringFromCLSID

 

 

Send comments about this topic to Microsoft

Build date: 5/16/2013

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.