UxThemeGetCurrentThemeName Method

Retrieves the name of the current visual style, and optionally retrieves the color scheme name and size name.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("UxTheme.dll", CharSet = CharSet.Auto, BestFitMapping = false, 
	ThrowOnUnmappableChar = true)]
public static int GetCurrentThemeName(
	StringBuilder themeFileName,
	int maxNameChars,
	StringBuilder colorBuffer,
	int maxColorChars,
	StringBuilder sizeBuffer,
	int maxSizeChars
)

Parameters

themeFileName  StringBuilder
Pointer to a string that receives the theme path and file name.
maxNameChars  Int32
The maximum number of characters allowed in the theme file name.
colorBuffer  StringBuilder
Pointer to a string that receives the color scheme name.

This parameter may be set to .

maxColorChars  Int32
The maximum number of characters allowed in the color scheme name.
sizeBuffer  StringBuilder
Pointer to a string that receives the size name.

This parameter may be set to .

maxSizeChars  Int32
The maximum number of characters allowed in the size name.

Return Value

Int32
Returns 0 if successful, otherwise, an error code.

Remarks

See Also