Expand Minimize

SHCLSIDFromString function

[This function is available through Windows XP Service Pack 2 (SP2) and Windows Server 2003. It might be altered or unavailable in subsequent versions of Windows. Use CLSIDFromString instead.]

Takes the string form of a class identifier (CLSID) and creates the corresponding CLSID.

Syntax


HRESULT SHCLSIDFromString(
  _In_   PCWSTR psz,
  _Out_  CLSID *pcClsid
);

Parameters

psz [in]

Type: PCWSTR

A Unicode string that contains the CLSID in the format, {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}.

pcClsid [out]

Type: CLSID*

A pointer to a CLSID value that, when this function returns successfully, receives the converted string as a CLSID.

Return value

Type: HRESULT

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Shlobj.h

Library

Shell32.lib

DLL

Shell32.dll (version 5.0 or later)

 

 

Community Additions

ADD
Show:
© 2014 Microsoft