GetCurrentThemeName function (uxtheme.h)
Retrieves the name of the current visual style, and optionally retrieves the color scheme name and size name.
Syntax
HRESULT GetCurrentThemeName(
[out] LPWSTR pszThemeFileName,
[in] int cchMaxNameChars,
[out] LPWSTR pszColorBuff,
[in] int cchMaxColorChars,
[out] LPWSTR pszSizeBuff,
[in] int cchMaxSizeChars
);
Parameters
[out] pszThemeFileName
Type: LPWSTR
Pointer to a string that receives the theme path and file name.
[in] cchMaxNameChars
Type: int
Value of type int that contains the maximum number of characters allowed in the theme file name.
[out] pszColorBuff
Type: LPWSTR
Pointer to a string that receives the color scheme name. This parameter may be set to NULL.
[in] cchMaxColorChars
Type: int
Value of type int that contains the maximum number of characters allowed in the color scheme name.
[out] pszSizeBuff
Type: LPWSTR
Pointer to a string that receives the size name. This parameter may be set to NULL.
[in] cchMaxSizeChars
Type: int
Value of type int that contains the maximum number of characters allowed in the size name.
Return value
Type: HRESULT
Returns S_OK if successful, otherwise an error code.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | uxtheme.h |
Library | UxTheme.lib |
DLL | UxTheme.dll (version 1.0 or later) |