* Create a main header and move some inclusions to it.
* Set the default debugging channel globally through the main header.
* Remove inclusions that already exist in the main resource file.
CORE-7716
svn path=/trunk/; revision=61391
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-#define COM_NO_WINDOWS_H
-
-#include <stdarg.h>
-
-#define COBJMACROS
-#define NONAMELESSUNION
-#define NONAMELESSSTRUCT
-#include <windef.h>
-#include <winbase.h>
-//#include "winreg.h"
-//#include "winuser.h"
-//#include "winerror.h"
-//#include "winternl.h"
-//#include "objbase.h"
-//#include "shlwapi.h"
-#include <mapiutil.h>
-#include "util.h"
-#include <wine/debug.h>
-
-WINE_DEFAULT_DEBUG_CHANNEL(mapi);
+#include "precomp.h"
static const IMallocVtbl MAPI_IMalloc_vt;
*
*/
-#include "res.h"
-
LANGUAGE LANG_WELSH, SUBLANG_DEFAULT
STRINGTABLE
*
*/
-#include "res.h"
-
LANGUAGE LANG_DANISH, SUBLANG_DEFAULT
STRINGTABLE
*
*/
-#include "res.h"
-
LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL
STRINGTABLE
*
*/
-#include "res.h"
-
LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT
STRINGTABLE
*
*/
-#include "res.h"
-
/* UTF-8 */
#pragma code_page(65001)
*
*/
-#include "res.h"
-
/* UTF-8 */
#pragma code_page(65001)
*
*/
-#include "res.h"
-
LANGUAGE LANG_GAELIC, SUBLANG_GAELIC
STRINGTABLE
*
*/
-#include "res.h"
-
LANGUAGE LANG_HEBREW, SUBLANG_DEFAULT
STRINGTABLE
*
*/
-#include "res.h"
-
/* UTF-8 */
#pragma code_page(65001)
*
*/
-#include "res.h"
-
/* UTF-8 */
#pragma code_page(65001)
*
*/
-#include "res.h"
-
/* UTF-8 */
#pragma code_page(65001)
*
*/
-#include "res.h"
-
/* UTF-8 */
#pragma code_page(65001)
*
*/
-#include "res.h"
-
/* UTF-8 */
#pragma code_page(65001)
*
*/
-#include "res.h"
-
LANGUAGE LANG_DUTCH, SUBLANG_NEUTRAL
#pragma code_page(65001)
*
*/
-#include "res.h"
-
#pragma code_page(65001)
LANGUAGE LANG_NORWEGIAN, SUBLANG_NORWEGIAN_BOKMAL
*
*/
-#include "res.h"
-
LANGUAGE LANG_POLISH, SUBLANG_DEFAULT
STRINGTABLE
*
*/
-#include "res.h"
-
#pragma code_page(65001)
LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE_BRAZILIAN
*
*/
-#include "res.h"
-
LANGUAGE LANG_ROMANIAN, SUBLANG_NEUTRAL
#pragma code_page(65001)
*
*/
-#include "res.h"
-
/* UTF-8 */
#pragma code_page(65001)
*
*/
-#include "res.h"
-
#pragma code_page(65001)
LANGUAGE LANG_SLOVENIAN, SUBLANG_DEFAULT
*
*/
-#include "res.h"
-
/* UTF-8 */
#pragma code_page(65001)
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-#define COM_NO_WINDOWS_H
+#include "precomp.h"
-#include <stdarg.h>
-
-#include <windef.h>
-#include <winbase.h>
-//#include "winerror.h"
-//#include "objbase.h"
-#include <initguid.h>
#include <mapix.h>
-//#include "mapiform.h"
-//#include "mapi.h"
-#include <wine/debug.h>
-#include "util.h"
-
-WINE_DEFAULT_DEBUG_CHANNEL(mapi);
DECLSPEC_HIDDEN LONG MAPI_ObjectCount = 0;
DECLSPEC_HIDDEN HINSTANCE hInstMAPI32;
--- /dev/null
+#ifndef _MAPI32_PCH_
+#define _MAPI32_PCH_
+
+#include <config.h>
+
+#include <stdarg.h>
+
+#define WIN32_NO_STATUS
+#define _INC_WINDOWS
+#define COM_NO_WINDOWS_H
+
+#define COBJMACROS
+#define NONAMELESSUNION
+#define NONAMELESSSTRUCT
+
+#include <windef.h>
+#include <winbase.h>
+#include <winreg.h>
+#include <initguid.h>
+#include <mapival.h>
+#include <mapiutil.h>
+
+#include <wine/unicode.h>
+
+#include <wine/debug.h>
+WINE_DEFAULT_DEBUG_CHANNEL(mapi);
+
+#include "util.h"
+
+#endif /* _MAPI32_PCH_ */
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-#define COM_NO_WINDOWS_H
-
-#include <stdarg.h>
-#define NONAMELESSUNION
-#define NONAMELESSSTRUCT
-#include "windef.h"
-#include "winbase.h"
-#include "winreg.h"
-//#include "winerror.h"
-//#include "winternl.h"
-//#include "objbase.h"
+#include "precomp.h"
+
#include <shlwapi.h>
#include <wine/list.h>
-#include <wine/debug.h>
-#include <wine/unicode.h>
-#include <mapival.h>
-
-WINE_DEFAULT_DEBUG_CHANNEL(mapi);
BOOL WINAPI FBadRglpszA(LPSTR*,ULONG);
*
*/
-//#include <windef.h>
+#pragma once
/* Strings */
#define IDS_NO_MAPI_CLIENT 1
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-#define COM_NO_WINDOWS_H
+#include "precomp.h"
-#include <config.h>
-//#include "wine/port.h"
-
-//#include <stdio.h>
-#include <stdarg.h>
-
-#define COBJMACROS
-
-#include <windef.h>
-#include <winbase.h>
-//#include "winerror.h"
#include <winuser.h>
-//#include "objbase.h"
-//#include "objidl.h"
-//#include "mapi.h"
-//#include "mapix.h"
-#include <mapiutil.h>
-//#include "mapidefs.h"
-//#include "winreg.h"
-//#include "shellapi.h"
-//#include "shlwapi.h"
-#include <wine/debug.h>
-#include <wine/unicode.h>
-#include "util.h"
-#include "res.h"
-WINE_DEFAULT_DEBUG_CHANNEL(mapi);
+#include "res.h"
#define READ_BUF_SIZE 4096
#define WIN32_NO_STATUS
#define _INC_WINDOWS
#define COM_NO_WINDOWS_H
+
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
#include <mapix.h>
+
#include <reactos/debug.h>
typedef PVOID LPMAPIFORMMGR, LPADDRESSBOOK;
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-#define COM_NO_WINDOWS_H
+#include "precomp.h"
-//#include <stdarg.h>
#include <stdio.h>
-#define COBJMACROS
-#define NONAMELESSUNION
-#define NONAMELESSSTRUCT
-#include <windef.h>
-#include <winbase.h>
-#include <winreg.h>
-//#include "winuser.h"
-//#include "winerror.h"
#include <winternl.h>
-//#include "objbase.h"
#include <shlwapi.h>
-#include <wine/debug.h>
-#include <wine/unicode.h>
-#include <mapival.h>
#include <xcmc.h>
#include <msi.h>
-#include "util.h"
-
-WINE_DEFAULT_DEBUG_CHANNEL(mapi);
static const BYTE digitsToHex[] = {
0,1,2,3,4,5,6,7,8,9,0xff,0xff,0xff,0xff,0xff,0xff,0xff,10,11,12,13,14,15,
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
+#include "res.h"
+
#define WINE_FILEDESCRIPTION_STR "Wine Messaging API"
#define WINE_FILENAME_STR "mapi32.dll"
#define WINE_FILEVERSION 1,0,0,0