blob: 41d2e9fb5c08dbac68340fd0437d5c548619f3e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
#pragma once
// 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.
#include <windows.h>
#include <msiquery.h>
#include <objbase.h>
#include <shlobj.h>
#include <shlwapi.h>
#include <stdlib.h>
#include <strsafe.h>
#pragma warning(push)
#pragma warning(disable:4458)
#include <gdiplus.h>
#pragma warning(pop)
#include "dutil.h"
#include "apputil.h"
#include "memutil.h"
#include "dictutil.h"
#include "dirutil.h"
#include "fileutil.h"
#include "locutil.h"
#include "logutil.h"
#include "pathutil.h"
#include "resrutil.h"
#include "shelutil.h"
#include "strutil.h"
#include "thmutil.h"
#include "wndutil.h"
#include "resource.h"
struct HANDLE_THEME
{
DWORD cReferences;
THEME* pTheme;
};
enum WM_THMVWR
{
WM_THMVWR_SHOWPAGE = WM_APP,
WM_THMVWR_PARSE_FILE,
WM_THMVWR_NEW_THEME,
WM_THMVWR_THEME_LOAD_ERROR,
WM_THMVWR_THEME_LOAD_BEGIN,
};
extern "C" HRESULT DisplayStart(
__in HINSTANCE hInstance,
__in HWND hWnd,
__out HANDLE *phThread,
__out DWORD* pdwThreadId
);
extern "C" HRESULT LoadStart(
__in_z LPCWSTR wzThemePath,
__in_z_opt LPCWSTR wzWxlPath,
__in HWND hWnd,
__out HANDLE* phThread
);
extern "C" HRESULT AllocHandleTheme(
__in THEME* pTheme,
__out HANDLE_THEME** ppHandle
);
extern "C" void IncrementHandleTheme(
__in HANDLE_THEME* pHandle
);
extern "C" void DecrementHandleTheme(
__in HANDLE_THEME* pHandle
);
|