Module: wine
Branch: master
Commit: 402b8f0d59d5c210050b36c0f280a5e2a78d02c1
URL: http://source.winehq.org/git/wine.git/?a=commit;h=402b8f0d59d5c210050b36c0f…
Author: Francois Gouget <fgouget(a)free.fr>
Date: Sat Aug 4 03:16:33 2007 +0200
mscoree: Add cor.h and mscoree.idl and fix some semi-stub prototypes.
---
.gitignore | 1 +
dlls/mscoree/mscoree_main.c | 11 +++++++----
include/Makefile.in | 2 ++
include/cor.h | 43 +++++++++++++++++++++++++++++++++++++++++++
include/mscoree.idl | 27 +++++++++++++++++++++++++++
5 files changed, 80 insertions(+), 4 deletions(-)
diff --git a/.gitignore b/.gitignore
index 2fdb222..94a13c9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -725,6 +725,7 @@ include/mediaobj.h
include/mimeinfo.h
include/mlang.h
include/mmstream.h
+include/mscoree.h
include/mshtmhst.h
include/mshtml.h
include/msinkaut.h
diff --git a/dlls/mscoree/mscoree_main.c b/dlls/mscoree/mscoree_main.c
index fd2c0a9..678b346 100644
--- a/dlls/mscoree/mscoree_main.c
+++ b/dlls/mscoree/mscoree_main.c
@@ -27,6 +27,9 @@
#include "winreg.h"
#include "ole2.h"
+#include "cor.h"
+#include "mscoree.h"
+
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL( mscoree );
@@ -123,7 +126,7 @@ static LPWSTR get_mono_exe(void)
return ret;
}
-int WINAPI _CorExeMain(void)
+__int32 WINAPI _CorExeMain(void)
{
STARTUPINFOW si;
PROCESS_INFORMATION pi;
@@ -168,7 +171,7 @@ int WINAPI _CorExeMain(void)
return (int)exit_code;
}
-int WINAPI _CorExeMain2(PBYTE ptrMemory, DWORD cntMemory, LPCWSTR imageName, LPCWSTR loaderName, LPCWSTR cmdLine)
+__int32 WINAPI _CorExeMain2(PBYTE ptrMemory, DWORD cntMemory, LPWSTR imageName, LPWSTR loaderName, LPWSTR cmdLine)
{
TRACE("(%p, %u, %s, %s, %s)\n", ptrMemory, cntMemory, debugstr_w(imageName), debugstr_w(loaderName), debugstr_w(cmdLine));
FIXME("Directly running .NET applications not supported.\n");
@@ -181,12 +184,12 @@ void WINAPI CorExitProcess(int exitCode)
ExitProcess(exitCode);
}
-void WINAPI _CorImageUnloading(LPCVOID* imageBase)
+VOID WINAPI _CorImageUnloading(PVOID imageBase)
{
TRACE("(%p): stub\n", imageBase);
}
-DWORD WINAPI _CorValidateImage(LPCVOID* imageBase, LPCWSTR imageName)
+HRESULT WINAPI _CorValidateImage(PVOID* imageBase, LPCWSTR imageName)
{
TRACE("(%p, %s): stub\n", imageBase, debugstr_w(imageName));
return E_FAIL;
diff --git a/include/Makefile.in b/include/Makefile.in
index 889cd9c..4d71204 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -28,6 +28,7 @@ IDL_H_SRCS = \
mimeinfo.idl \
mlang.idl \
mmstream.idl \
+ mscoree.idl \
mshtmhst.idl \
mshtml.idl \
msinkaut.idl \
@@ -85,6 +86,7 @@ SRCDIR_INCLUDES = \
commctrl.h \
commdlg.h \
compobj.h \
+ cor.h \
cpl.h \
custcntl.h \
cvconst.h \
diff --git a/include/cor.h b/include/cor.h
new file mode 100644
index 0000000..cdf89dd
--- /dev/null
+++ b/include/cor.h
@@ -0,0 +1,43 @@
+/*
+ * Copyright (C) 2007 Francois Gouget
+ *
+ * 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_COR_H
+#define __WINE_COR_H
+
+#include "ole2.h"
+/* FIXME: #include "specstrings.h" */
+/* FIXME: #include "corerror.h" */
+/* FIXME: #include "corhdr.h" */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+BOOL WINAPI _CorDllMain(HINSTANCE,DWORD,LPVOID);
+__int32 WINAPI _CorExeMain(void);
+__int32 WINAPI _CorExeMain2(PBYTE,DWORD,LPWSTR,LPWSTR,LPWSTR);
+VOID WINAPI _CorImageUnloading(PVOID);
+HRESULT WINAPI _CorValidateImage(PVOID*,LPCWSTR);
+HRESULT WINAPI CoInitializeCor(DWORD);
+void WINAPI CoUninitializeCor(void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __WINE_COR_H */
diff --git a/include/mscoree.idl b/include/mscoree.idl
new file mode 100644
index 0000000..8dfaa1b
--- /dev/null
+++ b/include/mscoree.idl
@@ -0,0 +1,27 @@
+/*
+ * Copyright (C) 2007 Francois Gouget
+ *
+ * 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
+ */
+
+cpp_quote("/* FIXME: #include <gcghost.h> */")
+cpp_quote("/* FIXME: #include <ivalidator.h> */")
+
+cpp_quote("HRESULT WINAPI CorBindToRuntimeHost(LPCWSTR,LPCWSTR,LPCWSTR,VOID*,DWORD,REFCLSID,REFIID,LPVOID*);")
+cpp_quote("void WINAPI CorExitProcess(int);")
+cpp_quote("HRESULT WINAPI GetCORSystemDirectory(LPWSTR,DWORD,DWORD*);")
+cpp_quote("HRESULT WINAPI GetCORVersion(LPWSTR,DWORD,DWORD*);")
+cpp_quote("HRESULT WINAPI GetRequestedRuntimeInfo(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,DWORD,LPWSTR,DWORD,DWORD*,LPWSTR,DWORD,DWORD*);")
+cpp_quote("HRESULT WINAPI LoadLibraryShim(LPCWSTR,LPCWSTR,LPVOID,HMODULE*);")
Module: wine
Branch: master
Commit: b86570d136f97481537ec8b17335a5a1c94ade90
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b86570d136f97481537ec8b17…
Author: Francois Gouget <fgouget(a)free.fr>
Date: Sat Aug 4 03:15:44 2007 +0200
imagehlp: Better match the PSDK types, especially with regards to constness.
Add many missing prototypes which we already had in dbghelp.h, and their related structures.
Update win32.api to fix the winapi_check warnings.
---
dlls/imagehlp/access.c | 4 +-
dlls/imagehlp/modify.c | 26 +-
include/imagehlp.h | 720 +++++++++++++++++++++++++++++++++++++++++++++---
tools/winapi/win32.api | 13 +-
4 files changed, 698 insertions(+), 65 deletions(-)
Diff: http://source.winehq.org/git/wine.git/?a=commitdiff;h=b86570d136f97481537ec…
Module: wine
Branch: master
Commit: 5e565a76b4f9bddb0fa594f2c7e4a56dfb087dd7
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5e565a76b4f9bddb0fa594f2c…
Author: Francois Gouget <fgouget(a)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