mapi32: Add a skeleton mapiform.h header with a proper prototype for MAPIOpenLocalFormContainer().

Francois Gouget fgouget at free.fr
Fri Aug 3 20:25:15 CDT 2007


---
 dlls/mapi32/mapi32_main.c |    1 +
 include/Makefile.in       |    1 +
 include/mapiform.h        |   51 +++++++++++++++++++++++++++++++++++++++++++++
 include/windef.h          |    4 +++
 4 files changed, 57 insertions(+), 0 deletions(-)

diff --git a/dlls/mapi32/mapi32_main.c b/dlls/mapi32/mapi32_main.c
index 983dc24..a985ac6 100644
--- a/dlls/mapi32/mapi32_main.c
+++ b/dlls/mapi32/mapi32_main.c
@@ -25,6 +25,7 @@
 #include "winerror.h"
 #include "objbase.h"
 #include "mapix.h"
+#include "mapiform.h"
 #include "mapi.h"
 #include "wine/debug.h"
 
diff --git a/include/Makefile.in b/include/Makefile.in
index 34b5c7b..b5e9b78 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -211,6 +211,7 @@ SRCDIR_INCLUDES = \
 	mapi.h \
 	mapicode.h \
 	mapidefs.h \
+	mapiform.h \
 	mapiguid.h \
 	mapitags.h \
 	mapiutil.h \
diff --git a/include/mapiform.h b/include/mapiform.h
new file mode 100644
index 0000000..660245f
--- /dev/null
+++ b/include/mapiform.h
@@ -0,0 +1,51 @@
+/*
+ * Copyright (C) 1998 Justin Bradford
+ *
+ * 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 MAPIFORM_H
+#define MAPIFORM_H
+
+#include <mapidefs.h>
+#include <mapicode.h>
+#include <mapiguid.h>
+#include <mapitags.h>
+
+
+typedef ULONG HFRMREG;
+#define HFRMREG_DEFAULT            0
+#define HFRMREG_LOCAL              1
+#define HFRMREG_PERSONAL           2
+#define HFRMREG_FOLDER             3
+
+#ifndef LPCRECT_DEFINED
+#define LPCRECT_DEFINED
+typedef const RECT *LPCRECT;
+#endif
+typedef const char **LPPCSTR;
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+HRESULT     WINAPI MAPIOpenLocalFormContainer(LPVOID*);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* MAPIFORM_H */
diff --git a/include/windef.h b/include/windef.h
index fd3d423..4903d2f 100644
--- a/include/windef.h
+++ b/include/windef.h
@@ -374,7 +374,11 @@ typedef struct tagRECT
     LONG right;
     LONG bottom;
 } RECT, *PRECT, *LPRECT;
+
+#ifndef LPCRECT_DEFINED
+#define LPCRECT_DEFINED
 typedef const RECT *LPCRECT;
+#endif
 
 typedef struct _RECTL
 {
-- 
1.4.4.4




More information about the wine-patches mailing list