NAME
EnumThemeColors (UXTHEME.9)
SYNOPSIS
HRESULT EnumThemeColors
(
LPWSTR pszThemeFileName,
LPWSTR pszSizeName,
DWORD dwColorNum,
PTHEMENAMES pszColorNames
)
DESCRIPTION
Enumerate theme colors available with a particular size.
PARAMS
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.
RETURNS
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.
NOTES
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(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".