Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

OpenThemeFile (uxtheme)
 
.
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

Please edit this page!

Do you have...

  • helpful tips or sample code to share for using this API in managed code?
  • corrections to the existing content?
  • variations of the signature you want to share?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions