CLSIDFromString function
Applies to: desktop apps | Metro style apps
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 code | Description |
|---|---|
|
The CLSID was obtained successfully. |
|
The class string was improperly formatted. |
|
The CLSID corresponding to the class string was not found in the registry. |
|
The registry could not be opened for reading. |
Requirements
|
Minimum supported client | Windows 2000 Professional |
|---|---|
|
Minimum supported server | Windows 2000 Server |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 3/7/2012
Incorrect parameter type
The string parameter is of type LPOLESTR in ObjBase.h, instead of LPCOLESTR as suggested here.
(Ideally the header would be corrected to match the documentation, not the other way round.)
(Ideally the header would be corrected to match the documentation, not the other way round.)
- 9/15/2009
- Daniel Earwicker