aboutsummaryrefslogtreecommitdiff
path: root/src/thmviewer/precomp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/thmviewer/precomp.h')
-rw-r--r--src/thmviewer/precomp.h69
1 files changed, 69 insertions, 0 deletions
diff --git a/src/thmviewer/precomp.h b/src/thmviewer/precomp.h
new file mode 100644
index 00000000..1d186cf4
--- /dev/null
+++ b/src/thmviewer/precomp.h
@@ -0,0 +1,69 @@
1#pragma once
2// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
3
4
5#include <windows.h>
6#include <msiquery.h>
7#include <objbase.h>
8#include <shlobj.h>
9#include <shlwapi.h>
10#include <stdlib.h>
11#include <strsafe.h>
12
13#pragma warning(push)
14#pragma warning(disable:4458)
15#include <gdiplus.h>
16#pragma warning(pop)
17
18#include "dutil.h"
19#include "apputil.h"
20#include "memutil.h"
21#include "dirutil.h"
22#include "fileutil.h"
23#include "locutil.h"
24#include "logutil.h"
25#include "pathutil.h"
26#include "resrutil.h"
27#include "shelutil.h"
28#include "strutil.h"
29#include "thmutil.h"
30
31#include "resource.h"
32
33struct HANDLE_THEME
34{
35 DWORD cReferences;
36 THEME* pTheme;
37};
38
39enum WM_THMVWR
40{
41 WM_THMVWR_SHOWPAGE = WM_APP,
42 WM_THMVWR_PARSE_FILE,
43 WM_THMVWR_NEW_THEME,
44 WM_THMVWR_THEME_LOAD_ERROR,
45};
46
47extern "C" HRESULT DisplayStart(
48 __in HINSTANCE hInstance,
49 __in HWND hWnd,
50 __out HANDLE *phThread,
51 __out DWORD* pdwThreadId
52 );
53extern "C" HRESULT LoadStart(
54 __in_z LPCWSTR wzThemePath,
55 __in_z LPCWSTR wzWxlPath,
56 __in HWND hWnd,
57 __out HANDLE* phThread
58 );
59
60extern "C" HRESULT AllocHandleTheme(
61 __in THEME* pTheme,
62 __out HANDLE_THEME** ppHandle
63 );
64extern "C" void IncrementHandleTheme(
65 __in HANDLE_THEME* pHandle
66 );
67extern "C" void DecrementHandleTheme(
68 __in HANDLE_THEME* pHandle
69 );