summaryrefslogtreecommitdiff
path: root/dwm_load.h
blob: 6b91e0c674152e26802a10ee15696c62c483d98c (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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
/*
Copyright (c) 2015 Wolfgang 'datenwolf' Draxinger

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
#pragma once
#ifndef DWM_LOAD_H
#define DWM_LOAD_H

#include <dwmapi.h>

#ifdef __cplusplus
extern "C" {
#endif

BOOL dwmload_DefWindowProc(
    HWND hwnd,
    UINT msg,
    WPARAM wParam,
    LPARAM lParam,
    LRESULT *plResult
);
#define DwmDefWindowProc dwmload_DefWindowProc

HRESULT dwmload_EnableBlurBehindWindow(
    HWND hWnd,
    const DWM_BLURBEHIND *pBlurBehind
);
#define DwmEnableBlurBehindWindow dwmload_EnableBlurBehindWindow

HRESULT dwmload_EnableComposition(
    UINT uCompositionAction
);
#define DwmEnableComposition dwmload_EnableComposition

HRESULT dwmload_EnableMMCSS(
    BOOL fEnableMMCSS
);
#define DwmEnableMMCSS dwmload_EnableMMCSS

HRESULT dwmload_ExtendFrameIntoClientArea(
    HWND hWnd,
    const MARGINS *pMarInset
);
#define DwmExtendFrameIntoClientArea dwmload_ExtendFrameIntoClientArea

HRESULT dwmload_GetColorizationColor(
    DWORD *pcrColorization,
    BOOL *pfOpaqueBlend
);
#define DwmGetColorizationColor dwmload_GetColorizationColor

HRESULT dwmload_GetCompositionTimingInfo(
    HWND hwnd,
    DWM_TIMING_INFO *pTimingInfo
);
#define DwmGetCompositionTimingInfo dwmload_GetCompositionTimingInfo

HRESULT dwmload_GetWindowAttribute(
    HWND hwnd,
    DWORD dwAttribute,
    PVOID pvAttribute,
    DWORD cbAttribute
);
#define DwmGetWindowAttribute dwmload_GetWindowAttribute

HRESULT dwmload_IsCompositionEnabled(
    BOOL *pfEnabled
);
#define DwmIsCompositionEnabled dwmload_IsCompositionEnabled

HRESULT dwmload_ModifyPreviousDxFrameDuration(
    HWND hwnd,
    INT cRefreshes,
    BOOL fRelative
);
#define DwmModifyPreviousDxFrameDuration dwmload_ModifyPreviousDxFrameDuration

HRESULT dwmload_QueryThumbnailSourceSize(
    HTHUMBNAIL hThumbnail,
    PSIZE pSize
);
#define DwmQueryThumbnailSourceSize dwmload_QueryThumbnailSourceSize

HRESULT dwmload_RegisterThumbnail(
    HWND hwndDestination,
    HWND *hwndSource,
    PHTHUMBNAIL phThumbnailId
);
#define DwmRegisterThumbnail dwmload_RegisterThumbnail

HRESULT dwmload_SetDxFrameDuration(
    HWND hwnd,
    INT cRefreshes
);
#define DwmSetDxFrameDuration dwmload_SetDxFrameDuration

HRESULT dwmload_SetPresentParameters(
    HWND hwnd,
    DWM_PRESENT_PARAMETERS *pPresentParams
);
#define DwmSetPresentParameters dwmload_SetPresentParameters

HRESULT dwmload_SetWindowAttribute(
    HWND hwnd,
    DWORD dwAttribute,
    LPCVOID pvAttribute,
    DWORD cbAttribute
);
#define DwmSetWindowAttribute dwmload_SetWindowAttribute

HRESULT dwmload_UnregisterThumbnail(
    HTHUMBNAIL hThumbnailId
);
#define DwmUnregisterThumbnail dwmload_UnregisterThumbnail

HRESULT dwmload_UpdateThumbnailProperties(
    HTHUMBNAIL hThumbnailId,
    const DWM_THUMBNAIL_PROPERTIES *ptnProperties
);
#define DwmUpdateThumbnailProperties dwmload_UpdateThumbnailProperties

#endif/*DWM_LOAD_H*/