EnumThemeColors (UXTHEME.9)
HRESULT EnumThemeColors ( LPWSTR pszThemeFileName, LPWSTR pszSizeName, DWORD dwColorNum, PTHEMENAMES pszColorNames )
Enumerate theme colors available with a particular size.
pszThemeFileName Path to a msstyles theme file |
pszSizeName Theme size to enumerate available colors |
If NULL the default theme size is used |
dwColorNum Color index to retrieve, increment from 0 |
pszColorNames Output color names. |
S_OK on success E_PROP_ID_UNSUPPORTED when dwColorName does not refer to a color or when pszSizeName does not refer to a valid size.
XP fails with E_POINTER when pszColorNames 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)
Exported by ordinal only. Use GetProcAddress to obtain a pointer to the function.
Implemented in "dlls/uxtheme/system.c". gitlab.winehq.org/wine/wine/blob/master/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 Nov 2024.