ReactOS 0.4.16-dev-1025-gd3456f5
uxundoc.h
Go to the documentation of this file.
1#pragma once
2
3#ifdef __cplusplus
4extern "C" {
5#endif
6
8
9typedef struct tagPARSE_ERROR_INFO
10{
18
20
21/**********************************************************************
22 * ENUMTHEMEPROC
23 *
24 * Callback function for EnumThemes.
25 *
26 * RETURNS
27 * TRUE to continue enumeration, FALSE to stop
28 *
29 * PARAMS
30 * lpReserved Always 0
31 * pszThemeFileName Full path to theme msstyles file
32 * pszThemeName Display name for theme
33 * pszToolTip Tooltip name for theme
34 * lpReserved2 Always 0
35 * lpData Value passed through lpData from EnumThemes
36 */
37typedef BOOL (CALLBACK *ENUMTHEMEPROC)(LPVOID lpReserved, LPCWSTR pszThemeFileName,
38 LPCWSTR pszThemeName, LPCWSTR pszToolTip, LPVOID lpReserved2,
39 LPVOID lpData);
40
41/**********************************************************************
42 * PARSETHEMEINIFILEPROC
43 *
44 * Callback function for ParseThemeIniFile.
45 *
46 * RETURNS
47 * TRUE to continue enumeration, FALSE to stop
48 *
49 * PARAMS
50 * dwType Entry type
51 * pszParam1 Use defined by entry type
52 * pszParam2 Use defined by entry type
53 * pszParam3 Use defined by entry type
54 * dwParam Use defined by entry type
55 * lpData Value passed through lpData from ParseThemeIniFile
56 *
57 * NOTES
58 * I don't know what the valid entry types are
59 */
60typedef BOOL (CALLBACK* PARSETHEMEINIFILEPROC)(DWORD dwType, LPWSTR pszParam1,
61 LPWSTR pszParam2, LPWSTR pszParam3,
62 DWORD dwParam, LPVOID lpData);
63
64/* Structure filled in by EnumThemeColors() and EnumeThemeSizes() with the
65 * various strings for a theme color or size. */
66typedef struct tagTHEMENAMES
67{
72
73/* Declarations for undocumented functions for use internally */
75
76HRESULT WINAPI OpenThemeFile(LPCWSTR pszThemeFileName,
77 LPCWSTR pszColorName,
78 LPCWSTR pszSizeName,
79 HTHEMEFILE *hThemeFile,
81
83
85 char *unknown,
86 HWND hWnd);
87
88HRESULT WINAPI GetThemeDefaults(LPCWSTR pszThemeFileName,
89 LPWSTR pszColorName,
90 DWORD dwColorNameLen,
91 LPWSTR pszSizeName,
92 DWORD dwSizeNameLen);
93
94HRESULT WINAPI EnumThemes(LPCWSTR pszThemePath,
96 LPVOID lpData);
97
98HRESULT WINAPI EnumThemeColors(LPWSTR pszThemeFileName,
99 LPWSTR pszSizeName,
100 DWORD dwColorNum,
101 PTHEMENAMES pszColorNames);
102
103HRESULT WINAPI EnumThemeSizes(LPWSTR pszThemeFileName,
104 LPWSTR pszColorName,
105 DWORD dwSizeNum,
106 PTHEMENAMES pszColorNames);
107
109 LPWSTR pszUnknown,
111 LPVOID lpData);
112
114 HWND hwnd,
115 LPCWSTR pszClassList,
116 DWORD flags);
117
118/* The DNCP_* flags let the caller decide what should be painted */
119#define DNCP_ACTIVEWINDOW 0x1
120#define DNCP_INACTIVEWINDOW 0x2
121#define DNCP_DIALOGWINDOW 0x4
122#define DNCP_DRAW_ALL DNCP_ACTIVEWINDOW | DNCP_INACTIVEWINDOW | DNCP_DIALOGWINDOW
123
125 DWORD DNCP_Flag,
126 LPRECT prcPreview,
127 LPCWSTR pszThemeFileName,
128 LPCWSTR pszColorName,
129 LPCWSTR pszSizeName,
130 PNONCLIENTMETRICSW pncMetrics,
131 COLORREF* lpaRgbValues);
132
134
136
137#ifdef __cplusplus
138} // extern "C"
139#endif
static HDC hDC
Definition: 3dtext.c:33
static DWORD const LPVOID const lpReserved
HWND hWnd
Definition: settings.c:17
static WCHAR unknown[MAX_STRING_RESOURCE_LEN]
Definition: object.c:1605
#define MAX_PATH
Definition: compat.h:34
#define CALLBACK
Definition: compat.h:35
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
GLbitfield flags
Definition: glext.h:7161
static HDC
Definition: imagelist.c:88
static IPrintDialogCallback callback
Definition: printdlg.c:326
static HTHEME(WINAPI *pOpenThemeDataEx)(HWND
unsigned int UINT
Definition: ndis.h:50
#define _Inout_
Definition: no_sal2.h:162
#define BOOL
Definition: nt_native.h:43
WCHAR szDescription[2 *MAX_PATH]
Definition: uxundoc.h:13
WCHAR szFile[MAX_PATH]
Definition: uxundoc.h:14
WCHAR szLine[MAX_PATH]
Definition: uxundoc.h:15
WCHAR szDisplayName[MAX_PATH+1]
Definition: uxundoc.h:69
WCHAR szName[MAX_PATH+1]
Definition: uxundoc.h:68
WCHAR szTooltip[MAX_PATH+1]
Definition: uxundoc.h:70
BOOL WINAPI ThemeHooksRemove()
Definition: themehooks.c:735
BOOL WINAPI ThemeHooksInstall()
Definition: themehooks.c:693
int32_t INT
Definition: typedefs.h:58
BOOL(CALLBACK * ENUMTHEMEPROC)(LPVOID lpReserved, LPCWSTR pszThemeFileName, LPCWSTR pszThemeName, LPCWSTR pszToolTip, LPVOID lpReserved2, LPVOID lpData)
Definition: uxundoc.h:37
HRESULT WINAPI ParseThemeIniFile(LPCWSTR pszIniFileName, LPWSTR pszUnknown, PARSETHEMEINIFILEPROC callback, LPVOID lpData)
Definition: system.c:1445
HANDLE HTHEMEFILE
Definition: uxundoc.h:7
HTHEME WINAPI OpenThemeDataFromFile(HTHEMEFILE hThemeFile, HWND hwnd, LPCWSTR pszClassList, DWORD flags)
Definition: system.c:842
DWORD WINAPI QueryThemeServices(void)
Definition: system.c:1094
HRESULT WINAPI DrawNCPreview(HDC hDC, DWORD DNCP_Flag, LPRECT prcPreview, LPCWSTR pszThemeFileName, LPCWSTR pszColorName, LPCWSTR pszSizeName, PNONCLIENTMETRICSW pncMetrics, COLORREF *lpaRgbValues)
Definition: nonclient.c:1215
HRESULT WINAPI ApplyTheme(HTHEMEFILE hThemeFile, char *unknown, HWND hWnd)
Definition: system.c:1173
HRESULT WINAPI OpenThemeFile(LPCWSTR pszThemeFileName, LPCWSTR pszColorName, LPCWSTR pszSizeName, HTHEMEFILE *hThemeFile, DWORD unknown)
Definition: system.c:1116
HRESULT WINAPI EnumThemeColors(LPWSTR pszThemeFileName, LPWSTR pszSizeName, DWORD dwColorNum, PTHEMENAMES pszColorNames)
Definition: system.c:1325
HRESULT WINAPI GetThemeParseErrorInfo(_Inout_ PPARSE_ERROR_INFO pInfo)
Definition: errinfo.c:126
HRESULT WINAPI EnumThemeSizes(LPWSTR pszThemeFileName, LPWSTR pszColorName, DWORD dwSizeNum, PTHEMENAMES pszColorNames)
Definition: system.c:1388
HRESULT WINAPI EnumThemes(LPCWSTR pszThemePath, ENUMTHEMEPROC callback, LPVOID lpData)
Definition: system.c:1236
HRESULT WINAPI CloseThemeFile(HTHEMEFILE hThemeFile)
Definition: system.c:1142
struct tagTHEMENAMES * PTHEMENAMES
struct tagPARSE_ERROR_INFO PARSE_ERROR_INFO
BOOL(CALLBACK * PARSETHEMEINIFILEPROC)(DWORD dwType, LPWSTR pszParam1, LPWSTR pszParam2, LPWSTR pszParam3, DWORD dwParam, LPVOID lpData)
Definition: uxundoc.h:60
struct tagPARSE_ERROR_INFO * PPARSE_ERROR_INFO
struct tagTHEMENAMES THEMENAMES
HRESULT WINAPI GetThemeDefaults(LPCWSTR pszThemeFileName, LPWSTR pszColorName, DWORD dwColorNameLen, LPWSTR pszSizeName, DWORD dwSizeNameLen)
Definition: system.c:1198
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
DWORD COLORREF
Definition: windef.h:300
#define WINAPI
Definition: msvc.h:6
__wchar_t WCHAR
Definition: xmlstorage.h:180
WCHAR * LPWSTR
Definition: xmlstorage.h:184
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185