[DllImport("UxTheme.Dll", EntryPoint = "#65", CharSet = CharSet.Unicode)]
public static extern int SetSystemVisualStyle(string pszFilename, string pszColor, string pszSize, int dwReserved);
<DllImport("UxTheme.DLL", BestFitMapping:=False, CallingConvention:=CallingConvention.Winapi, CharSet:=CharSet.Unicode, EntryPoint:="#65")> _
Shared Function SetSystemVisualStyle(ByVal pszFilename As String, ByVal pszColor As String, ByVal pszSize As String, ByVal dwReserved As Integer) As Integer
End Function
None.
pszFilename
Filename of the .msstyle file containing the VisualStyle
pszColor
Name of the color scheme you want to use. It has to be valid for the visual style.
pszSize
Name of the size scheme you want to use. It has to be valid in the visual style.
This is an useful functions that appeared in Windows XP SP2. You can use it for changing the curent Visual Style under Windows XP SP2.
This functions sets the Visual Style altmost instantaneously and in a persistant way (i.e. the visual style will still be there after a reset)
// This will set your Visual Style to Luna
SetSystemVisualStyle("C:\\WINDOWS\\resources\\Themes\\Luna\\Luna.msstyles", "Metallic", "NormalSize", 0);
Do you know one? Please contribute it!