OpenThemeFile (uxtheme)
Last changed: -67.128.30.210

.
Summary
TODO - a short description

C# Signature:

[DllImport("UxTheme.Dll", EntryPoint = "#2", CharSet = CharSet.Unicode)]
public static extern int OpenThemeFile(string pszFilename, string pszColor, string pszSize, out IntPtr hThemeFile, int dwReserved);

VB Signature:

<DllImport("UxTheme.DLL", BestFitMapping:=False, CallingConvention:=CallingConvention.Winapi, CharSet:=CharSet.Unicode, EntryPoint:="#2")> _
Declare Function OpenThemeFile Lib "uxtheme.dll" (ByVal String pszFilename, ByVal String pszColor, ByVal String pszSize, ByRef IntPtr hThemeFile, ByVal Integer dwReserved) As Integer

<DllImport("UxTheme.Dll", EntryPoint := "#2", CharSet := CharSet.Unicode)> _
Public Shared Function OpenThemeFile(pszFilename As String, pszColor As String, pszSize As String, ByRef hThemeFile As IntPtr, dwReserved As Integer) As Integer
End Function

Pascal/Delphi Signature:

Function OpenThemeFile(pszThemeFileName: LPCWSTR; pszColorName: LPCWSTR; pszSizeName: LPCWSTR; hThemeFile: Pointer; unknown: DWORD): HRESULT; StdCall; External 'uxtheme.dll' Index 2;

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

Parameters have the same meaning as for SetSystemVisualStyle, except the new hThemeFile one which is the result of the function.

I'll add an example of how to use this later.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation