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

# OpenColorProfileW(3w)

## NAME

**OpenColorProfileW** (MSCMS.@)

## SYNOPSIS

HPROFILE OpenColorProfileW\
  (\
   PPROFILE *profile*,\
   DWORD    *access*,\
   DWORD    *sharing*,\
   DWORD    *creation*\
  )

## DESCRIPTION

Open a color *profile*.

## PARAMS

*profile* **\[In\]**  Pointer to a color *profile* structure.

*access* **\[In\]**  Desired *access*.

*sharing* **\[In\]**  Sharing mode.

*creation* **\[In\]**  Creation mode.

## RETURNS

**Success:** Handle to the opened *profile*.

**Failure:** **NULL**.

## NOTES

Values for access: **PROFILE\_READ** or **PROFILE\_READWRITE**. Values for sharing: **0** (no *sharing*), **FILE\_SHARE\_READ** and/or **FILE\_SHARE\_WRITE**. Values for creation: one of **CREATE\_NEW**, **CREATE\_ALWAYS**, **OPEN\_EXISTING**, **OPEN\_ALWAYS**, **TRUNCATE\_EXISTING**. Sharing and *creation* flags are ignored for memory based profiles.

## IMPLEMENTATION

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

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

Debug channel **"mscms"**.
