NAME

EnumThemeSizes  (UXTHEME.10)

SYNOPSIS

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

DESCRIPTION

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® works too)

IMPLEMENTATION

Exported by ordinal only. Use GetProcAddress to obtain a pointer to the function.

Implemented in "dlls/uxtheme/system.c". https://source.winehq.org/source/dlls/uxtheme/system.c

Debug channel "uxtheme".


Copyright © 2024 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Mar 2024.