---
name: "CLSIDFromString"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/CLSIDFromString"
---

# CLSIDFromString(3w)

## NAME

**CLSIDFromString** (OLE32.@)

## SYNOPSIS

static HRESULT  CLSIDFromString\
  (\
   LPCWSTR *s*,\
   LPCLSID *id*\
  )

## DESCRIPTION

Converts a unique identifier from its string representation into the **GUID** struct.

## PARAMS

idstr **\[In\]**  The string representation of the **GUID**.

*id* **\[Out\]**  **GUID** converted from the string.

## RETURNS

**S\_OK** on success **CO\_E\_CLASSSTRING** if idstr is not a valid **CLSID**.

## SEE ALSO

StringFromCLSID

## IMPLEMENTATION

Declared in **"objbase.h"**.

Implemented in **"dlls/ole32/compobj.c"**.

Debug channel **"ole"**.
