aboutsummaryrefslogtreecommitdiff
path: root/src/samples/thmviewer/precomp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/samples/thmviewer/precomp.h')
-rw-r--r--src/samples/thmviewer/precomp.h70
1 files changed, 70 insertions, 0 deletions
diff --git a/src/samples/thmviewer/precomp.h b/src/samples/thmviewer/precomp.h
new file mode 100644
index 00000000..15d889fc
--- /dev/null
+++ b/src/samples/thmviewer/precomp.h
@@ -0,0 +1,70 @@
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 WM_THMVWR_THEME_LOAD_BEGIN,
46};
47
48extern "C" HRESULT DisplayStart(
49 __in HINSTANCE hInstance,
50 __in HWND hWnd,
51 __out HANDLE *phThread,
52 __out DWORD* pdwThreadId
53 );
54extern "C" HRESULT LoadStart(
55 __in_z LPCWSTR wzThemePath,
56 __in_z LPCWSTR wzWxlPath,
57 __in HWND hWnd,
58 __out HANDLE* phThread
59 );
60
61extern "C" HRESULT AllocHandleTheme(
62 __in THEME* pTheme,
63 __out HANDLE_THEME** ppHandle
64 );
65extern "C" void IncrementHandleTheme(
66 __in HANDLE_THEME* pHandle
67 );
68extern "C" void DecrementHandleTheme(
69 __in HANDLE_THEME* pHandle
70 );