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

# GetColorProfileElement(3w)

## NAME

**GetColorProfileElement** (MSCMS.@)

## SYNOPSIS

BOOL GetColorProfileElement\
  (\
   HPROFILE *handle*,\
   TAGTYPE  *type*,\
   DWORD    *offset*,\
   PDWORD   *size*,\
   PVOID    *buffer*,\
   PBOOL    *ref*\
  )

## DESCRIPTION

Retrieve data for a specified tag *type*.

## PARAMS

profile **\[In\]**  Handle to a color profile.

*type* **\[In\]**  **ICC** tag *type*.

*offset* **\[In\]**  Offset in bytes to start copying from.

*size* **\[In/Out\]**  Size of the *buffer* in bytes. On return the variable holds the number of bytes actually needed.

*buffer* **\[Out\]**  Buffer to receive the tag data.

*ref* **\[Out\]**  Pointer to a **BOOL** that specifies whether more than one tag references the data.

## RETURNS

**Success:** **TRUE**

**Failure:** **FALSE**

## IMPLEMENTATION

Declared in **"icm.h"**.

Implemented in **"dlls/mscms/profile.c"**.

Debug channel **"mscms"**.
