Export (0) Print
Expand All
Expand Minimize

GetCurrentThemeName function

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 dwMaxNameChars,
  _Out_  LPWSTR pszColorBuff,
  _In_   int cchMaxColorChars,
  _Out_  LPWSTR pszSizeBuff,
  _In_   int cchMaxSizeChars
);

Parameters

pszThemeFileName [out]

Type: LPWSTR

Pointer to a string that receives the theme path and file name.

dwMaxNameChars [in]

Type: int

Value of type int that contains the maximum number of characters allowed in the theme file name.

pszColorBuff [out]

Type: LPWSTR

Pointer to a string that receives the color scheme name. This parameter may be set to NULL.

cchMaxColorChars [in]

Type: int

Value of type int that contains the maximum number of characters allowed in the color scheme name.

pszSizeBuff [out]

Type: LPWSTR

Pointer to a string that receives the size name. This parameter may be set to NULL.

cchMaxSizeChars [in]

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

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 (version 1.0 or later)

 

 

Community Additions

ADD
Show:
© 2014 Microsoft