Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

GetThemeDocumentationProperty function

Retrieves the value for a theme property from the documentation section of the specified theme file.

Syntax


HRESULT GetThemeDocumentationProperty(
  _In_   LPCWSTR pszThemeName,
  _In_   LPCWSTR pszPropertyName,
  _Out_  LPWSTR pszValueBuff,
  _In_   int cchMaxValChars
);

Parameters

pszThemeName [in]

Type: LPCWSTR

Pointer to a string that contains the name of the theme file that will be opened to query for the property.

pszPropertyName [in]

Type: LPCWSTR

Pointer to a string that contains the name of the theme property to query. Can be one of the following values.

ValueMeaning
SZ_THDOCPROP_DISPLAYNAME

Retrieves the display name of the theme.

SZ_THDOCPROP_TOOLTIP

Retrieves the tooltip associated with this theme.

SZ_THDOCPROP_AUTHOR

Retrieves the name of the author of the theme.

SZ_THDOCPROP_CANONICALNAME

Retrieves the name of the theme.

 

pszValueBuff [out]

Type: LPWSTR

Pointer to a string buffer that receives the property string value.

cchMaxValChars [in]

Type: int

Value of type int that specifies the maximum number of characters that pszValueBuff can contain.

Return value

Type: HRESULT

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

If the theme property has been localized in the theme files string table, this function returns the localized version.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Uxtheme.h

Library

UxTheme.lib

DLL

UxTheme.dll

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.