EnumThemeSizes(3w)

EnumThemeSizes3w

Usage

HRESULT EnumThemeSizes
(
LPWSTR pszThemeFileName,
LPWSTR pszColorName,
DWORD dwSizeNum,
PTHEMENAMES pszSizeNames
)

Overview

Enumerate theme colors available with a particular size.

Params

pszThemeFileName Path to a msstyles theme file

pszColorName Theme color to enumerate available sizes

If NULL the default theme color is used

dwSizeNum Size index to retrieve, increment from 0

pszSizeNames Output size names.

Returns

S_OK on success E_PROP_ID_UNSUPPORTED when dwSizeName does not refer to a size or when pszColorName does not refer to a valid color.

Notes

XP fails with E_POINTER when pszSizeNames points to a buffer smaller than sizeof(THEMENAMES).

Not very efficient that I'm opening & validating the theme every call, but this is undocumented and almost never called.. (and this is how Windows(tm) works too)

Implementation

Exported by ordinal only. Use GetProcAddress(3w) to obtain a pointer to the function.

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

Debug channel "uxtheme".

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.