#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 #include #include #include #include #include #include #pragma warning(push) #pragma warning(disable:4458) #include #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 );