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

# GetThemeDefaults(3w)

## NAME

**GetThemeDefaults** (UXTHEME.7)

## SYNOPSIS

HRESULT GetThemeDefaults\
  (\
   LPCWSTR *pszThemeFileName*,\
   LPWSTR  *pszColorName*,\
   DWORD   *dwColorNameLen*,\
   LPWSTR  *pszSizeName*,\
   DWORD   *dwSizeNameLen*\
  )

## DESCRIPTION

Get the default color & size for a theme.

## PARAMS

*pszThemeFileName* Path to a msstyles theme file

*pszColorName* Buffer to receive the default color name

*dwColorNameLen* Length, in characters, of color name buffer

*pszSizeName* Buffer to receive the default size name

*dwSizeNameLen* Length, in characters, of size name buffer.

## 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"**.
