EnumThemeColors (UXTHEME.9)
HRESULT EnumThemeColors ( LPWSTR pszThemeFileName, LPWSTR pszSizeName, DWORD dwColorNum, LPWSTR pszColorName )
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 |
pszColorName Output color name. |
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 pszColorName points to a buffer smaller then 605 characters.
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". source.winehq.org/source/dlls/uxtheme/system.c
Debug channel "uxtheme".
Copyright © 2005 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Aug 2005.