Francois Gouget : dwmapi: Add dwmapi.h and update win32.
api to fix the winapi_check warnings.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Aug 6 08:03:44 CDT 2007
Module: wine
Branch: master
Commit: 5e565a76b4f9bddb0fa594f2c7e4a56dfb087dd7
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5e565a76b4f9bddb0fa594f2c7e4a56dfb087dd7
Author: Francois Gouget <fgouget at free.fr>
Date: Sat Aug 4 03:21:06 2007 +0200
dwmapi: Add dwmapi.h and update win32.api to fix the winapi_check warnings.
---
dlls/dwmapi/dwmapi_main.c | 1 +
include/Makefile.in | 1 +
include/dwmapi.h | 39 +++++++++++++++++++++++++++++++++++++++
tools/winapi/win32.api | 10 ++++++++++
4 files changed, 51 insertions(+), 0 deletions(-)
diff --git a/dlls/dwmapi/dwmapi_main.c b/dlls/dwmapi/dwmapi_main.c
index e4ebc3c..009f194 100644
--- a/dlls/dwmapi/dwmapi_main.c
+++ b/dlls/dwmapi/dwmapi_main.c
@@ -29,6 +29,7 @@
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
+#include "dwmapi.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(dwmapi);
diff --git a/include/Makefile.in b/include/Makefile.in
index 07daf60..889cd9c 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -152,6 +152,7 @@ SRCDIR_INCLUDES = \
dshow.h \
dsound.h \
dsrole.h \
+ dwmapi.h \
dxdiag.h \
dxerr8.h \
dxerr9.h \
diff --git a/include/dwmapi.h b/include/dwmapi.h
new file mode 100644
index 0000000..b2a28b6
--- /dev/null
+++ b/include/dwmapi.h
@@ -0,0 +1,39 @@
+/*
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#ifndef __WINE_DWMAPI_H
+#define __WINE_DWMAPI_H
+
+#include "wtypes.h"
+#include "uxtheme.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifndef DWMAPI
+# define DWMAPI STDAPI
+# define DWMAPI_(type) STDAPI_(type)
+#endif
+
+DWMAPI DwmEnableComposition(UINT);
+DWMAPI DwmIsCompositionEnabled(BOOL*);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __WINE_DWMAPI_H */
diff --git a/tools/winapi/win32.api b/tools/winapi/win32.api
index c1e4003..1a7278c 100644
--- a/tools/winapi/win32.api
+++ b/tools/winapi/win32.api
@@ -1306,6 +1306,16 @@ LPVOID *
REFCLSID
REFIID
+%%dwmapi.dll
+
+%long
+
+HRESULT
+
+%ptr
+
+BOOL *
+
%%dxdiagn.dll
%ptr
More information about the wine-cvs
mailing list