Desktop Functions: Smart Device Functions:
|
GetCurrentThemeName (uxtheme)
C# Signature:
[DllImport("uxtheme", ExactSpelling=true, CharSet=CharSet.Unicode)] VB .NET Signature:
Declare Function GetCurrentThemeName Lib "uxtheme.dll" (TODO) As TODO User-Defined Types:None. Notes:Originally the signature had the 3 StringBuilder parameters as out params, but that did not work. Once that was removed it worked. Tips & Tricks:When creating the StringBuilder variable, an initial size must be set otherwise an unmanaged exception is thrown Sample Code:StringBuilder stringThemeName = new StringBuilder(260); StringBuilder stringColorName = new StringBuilder(260); StringBuilder stringSizeName = new StringBuilder(260); Int32 s = GetCurrentThemeName(
stringThemeName, 260, Alternative Managed API:TODO Please edit this page!Do you have...
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). |
|