A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.microsoft.com/en-us/windows/win32/api/combaseapi/nf-combaseapi-clsidfromstring below:

CLSIDFromString function (combaseapi.h) - Win32 apps

CLSIDFromString function (combaseapi.h)

In this article

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

Syntax
HRESULT CLSIDFromString(
  [in]  LPCOLESTR lpsz,
  [out] LPCLSID   pclsid
);
Parameters

[in] lpsz

The zero terminated string representation of the CLSID or the ProgID or NULL.

[out] pclsid

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
NOERROR
The CLSID was obtained successfully.
CO_E_CLASSSTRING
The class string was improperly formatted.

The CLSID format is {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}.

Passing the ProgID results in saving associated CLSID in pclsid. Passing NULL results in GUID_NULL.

Requirements Requirement Value Minimum supported client Windows 2000 Professional [desktop apps | UWP apps] Minimum supported server Windows 2000 Server [desktop apps | UWP apps] Target Platform Windows Header combaseapi.h (include Objbase.h) Library Ole32.lib DLL Ole32.dll See also

CLSIDFromProgID

StringFromCLSID

Additional resources

In this article

Was this page helpful?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4