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

# StringFromGUID2(3w)

## NAME

**StringFromGUID2** (OLE32.@)

## SYNOPSIS

INT StringFromGUID2\
  (\
   REFGUID  *id*,\
   LPOLESTR *str*,\
   INT      *cmax*\
  )

## DESCRIPTION

Modified version of StringFromCLSID that allows you to specify max buffer size.

## PARAMS

*id* **\[In\]**  **GUID** to convert to string.

*str* **\[Out\]**  Buffer where the result will be stored.

*cmax* **\[In\]**  Size of the buffer in characters.

## RETURNS

**Success:** The length of the resulting string in characters.

**Failure:** **0.**

## IMPLEMENTATION

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

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

Debug channel **"ole"**.
