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

# OpenThemeFile(3w)

## NAME

**OpenThemeFile** (UXTHEME.2)

## SYNOPSIS

HRESULT OpenThemeFile\
  (\
   LPCWSTR     *pszThemeFileName*,\
   LPCWSTR     *pszColorName*,\
   LPCWSTR     *pszSizeName*,\
   HTHEMEFILE\* *hThemeFile*,\
   DWORD       *unknown*\
  )

## DESCRIPTION

Opens a theme file, which can be used to change the current theme, etc.

## PARAMS

*pszThemeFileName* Path to a msstyles theme file

*pszColorName* Color defined in the theme, eg. NormalColor

*pszSizeName* Size defined in the theme, eg. NormalSize

*hThemeFile* Handle to theme file.

## RETURNS

**Success:** **S\_OK**

**Failure:** **HRESULT** error-code

## IMPLEMENTATION

Exported by ordinal only. Use **[GetProcAddress(3w)](/GetProcAddress/3w.md)** to obtain a pointer to the function.

Implemented in **"dlls/uxtheme/system.c"**.

Debug channel **"uxtheme"**.
