[MPR]
authorAmine Khaldi <amine.khaldi@reactos.org>
Wed, 25 Dec 2013 11:26:57 +0000 (11:26 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Wed, 25 Dec 2013 11:26:57 +0000 (11:26 +0000)
* Create a main header and move some inclusions to it.
* Set the default debugging channel globally through the main header.
* Remove inclusions and definitions that already exist in the main header/resource file.
CORE-7716

svn path=/trunk/; revision=61398

34 files changed:
reactos/dll/win32/mpr/auth.c
reactos/dll/win32/mpr/lang/mpr_Bg.rc
reactos/dll/win32/mpr/lang/mpr_Cs.rc
reactos/dll/win32/mpr/lang/mpr_Da.rc
reactos/dll/win32/mpr/lang/mpr_De.rc
reactos/dll/win32/mpr/lang/mpr_En.rc
reactos/dll/win32/mpr/lang/mpr_Es.rc
reactos/dll/win32/mpr/lang/mpr_Fr.rc
reactos/dll/win32/mpr/lang/mpr_He.rc
reactos/dll/win32/mpr/lang/mpr_Hu.rc
reactos/dll/win32/mpr/lang/mpr_It.rc
reactos/dll/win32/mpr/lang/mpr_Ja.rc
reactos/dll/win32/mpr/lang/mpr_Ko.rc
reactos/dll/win32/mpr/lang/mpr_Lt.rc
reactos/dll/win32/mpr/lang/mpr_Nl.rc
reactos/dll/win32/mpr/lang/mpr_No.rc
reactos/dll/win32/mpr/lang/mpr_Pl.rc
reactos/dll/win32/mpr/lang/mpr_Pt.rc
reactos/dll/win32/mpr/lang/mpr_Ro.rc
reactos/dll/win32/mpr/lang/mpr_Ru.rc
reactos/dll/win32/mpr/lang/mpr_Si.rc
reactos/dll/win32/mpr/lang/mpr_Sv.rc
reactos/dll/win32/mpr/lang/mpr_Tr.rc
reactos/dll/win32/mpr/lang/mpr_Uk.rc
reactos/dll/win32/mpr/lang/mpr_Zh.rc
reactos/dll/win32/mpr/mpr.rc
reactos/dll/win32/mpr/mpr_main.c
reactos/dll/win32/mpr/mprres.h
reactos/dll/win32/mpr/multinet.c
reactos/dll/win32/mpr/netspi.h
reactos/dll/win32/mpr/nps.c
reactos/dll/win32/mpr/precomp.h [new file with mode: 0644]
reactos/dll/win32/mpr/pwcache.c
reactos/dll/win32/mpr/wnet.c

index a112e11..bf5c671 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define WIN32_NO_STATUS
-
-#include <stdarg.h>
-
-#include <windef.h>
-#include <winbase.h>
-#include <winnetwk.h>
-#include <wine/debug.h>
-
-WINE_DEFAULT_DEBUG_CHANNEL(mpr);
-
+#include "precomp.h"
 
 /*****************************************************************
  *  WNetLogoffA [MPR.@]
index a3f15a6..72debde 100644 (file)
@@ -18,8 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "mprres.h"
-
 LANGUAGE LANG_BULGARIAN, SUBLANG_DEFAULT
 
 STRINGTABLE
index 2bbdf3b..801fedc 100644 (file)
@@ -19,8 +19,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "mprres.h"
-
 LANGUAGE LANG_CZECH, SUBLANG_DEFAULT
 
 /* Czech strings in CP1250 */
index ae03903..64f67a6 100644 (file)
@@ -18,8 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "mprres.h"
-
 LANGUAGE LANG_DANISH, SUBLANG_DEFAULT
 
 STRINGTABLE
index 566529f..7fa736c 100644 (file)
@@ -18,8 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "mprres.h"
-
 #pragma code_page(65001)
 
 LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL
index cf369c6..360698f 100644 (file)
@@ -18,8 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "mprres.h"
-
 LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT
 
 STRINGTABLE
index 7295135..3e261b3 100644 (file)
@@ -18,8 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "mprres.h"
-
 LANGUAGE LANG_SPANISH, SUBLANG_NEUTRAL
 
 STRINGTABLE
index 700afc1..1427bbd 100644 (file)
@@ -19,8 +19,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "mprres.h"
-
 /* UTF-8 */
 #pragma code_page(65001)
 
index c464240..aec9ef2 100644 (file)
@@ -20,8 +20,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "mprres.h"
-
 LANGUAGE LANG_HEBREW, SUBLANG_DEFAULT
 
 STRINGTABLE
index 9870a6d..46fbf7f 100644 (file)
@@ -18,8 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "mprres.h"
-
 LANGUAGE LANG_HUNGARIAN, SUBLANG_DEFAULT
 
 STRINGTABLE
index 3a6a2f8..5c046cb 100644 (file)
@@ -19,8 +19,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "mprres.h"
-
 LANGUAGE LANG_ITALIAN, SUBLANG_NEUTRAL
 
 STRINGTABLE
index 0bd8ac5..03158e2 100644 (file)
@@ -18,8 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "mprres.h"
-
 /* UTF-8 */
 #pragma code_page(65001)
 
index 13bc0b8..26425d6 100644 (file)
@@ -19,8 +19,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "mprres.h"
-
 LANGUAGE LANG_KOREAN, SUBLANG_DEFAULT
 
 STRINGTABLE
index b72fe1d..2a6727c 100644 (file)
@@ -18,8 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "mprres.h"
-
 /* UTF-8 */
 #pragma code_page(65001)
 
index 611539f..0f218ab 100644 (file)
@@ -19,8 +19,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "mprres.h"
-
 LANGUAGE LANG_DUTCH, SUBLANG_NEUTRAL
 
 STRINGTABLE
index 3035508..af5758e 100644 (file)
@@ -18,8 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "mprres.h"
-
 LANGUAGE LANG_NORWEGIAN, SUBLANG_NORWEGIAN_BOKMAL
 
 STRINGTABLE
index 90a5fa1..13c4dac 100644 (file)
@@ -19,8 +19,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "mprres.h"
-
 LANGUAGE LANG_POLISH, SUBLANG_DEFAULT
 
 STRINGTABLE
index 27527a0..df7e705 100644 (file)
@@ -19,8 +19,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "mprres.h"
-
 #pragma code_page(65001)
 
 LANGUAGE LANG_PORTUGUESE, SUBLANG_NEUTRAL
index ead1d42..f0dd10b 100644 (file)
@@ -17,8 +17,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "mprres.h"
-
 LANGUAGE LANG_ROMANIAN, SUBLANG_NEUTRAL
 
 #pragma code_page(65001)
index 1e1ffe7..94f78b5 100644 (file)
@@ -18,8 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "mprres.h"
-
 /* UTF-8 */
 #pragma code_page(65001)
 
index c9098f2..cbbf411 100644 (file)
@@ -18,8 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "mprres.h"
-
 #pragma code_page(65001)
 
 LANGUAGE LANG_SLOVENIAN, SUBLANG_DEFAULT
index c1da38c..1f962cb 100644 (file)
@@ -18,8 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "mprres.h"
-
 LANGUAGE LANG_SWEDISH, SUBLANG_NEUTRAL
 
 STRINGTABLE
index 5890e7b..e0011e5 100644 (file)
@@ -18,8 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "mprres.h"
-
 LANGUAGE LANG_TURKISH, SUBLANG_DEFAULT
 
 STRINGTABLE
index 35ddf3c..68d3ae7 100644 (file)
@@ -19,8 +19,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "mprres.h"
-
 /* UTF-8 */
 #pragma code_page(65001)
 
index bd82626..f880464 100644 (file)
@@ -18,8 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "mprres.h"
-
 /* Chinese text is encoded in UTF-8 */
 #pragma code_page(65001)
 
index 4e65a79..bc1cc70 100644 (file)
  * License along with this library; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
-//#include "windef.h"
-//#include "winbase.h"
-//#include "winuser.h"
-//#include "mprres.h"
+
+#include <winuser.h>
+
+#include "mprres.h"
 
 #include "version.rc"
 
index fb4fee2..e319a0d 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define WIN32_NO_STATUS
-
-#include <stdarg.h>
-
-#include <windef.h>
-#include <winbase.h>
-//#include "objbase.h"
-//#include "winnetwk.h"
-#include <wine/debug.h>
+#include "precomp.h"
 #include "wnetpriv.h"
 
-WINE_DEFAULT_DEBUG_CHANNEL(mpr);
-
  /*
   * FIXME: The following routines should use a private heap ...
   */
index f8a8625..292b476 100644 (file)
@@ -18,9 +18,6 @@
 #ifndef __WINE_MPRRES_H__
 #define __WINE_MPRRES_H__
 
-//#include <windef.h>
-#include <winuser.h>
-
 #define IDS_ENTIRENETWORK 1
 
 #define IDD_PROXYDLG     0x400
index dc19f8e..326c5b1 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define WIN32_NO_STATUS
-
-#include <stdarg.h>
-
-#include <windef.h>
-#include <winbase.h>
-#include <winnetwk.h>
-#include <wine/debug.h>
-
-WINE_DEFAULT_DEBUG_CHANNEL(mpr);
-
+#include "precomp.h"
 
 /*****************************************************************
  *     MultinetGetConnectionPerformanceA [MPR.@]
index e00b1a0..c6bb1ea 100644 (file)
@@ -24,9 +24,6 @@
 #ifndef _NETSPI_H_
 #define _NETSPI_H_
 
-//#include "windef.h"
-#include <winnetwk.h>
-
 /*
  * Note: The Unicode variants of all these routines/structures
  *       apparently don't exist, at least not in Win95 ...
index 590bb4f..7137425 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define WIN32_NO_STATUS
-
-#include <config.h>
-
-#include <stdarg.h>
-
-#include <windef.h>
-#include <winbase.h>
-//#include "winuser.h"
-#include <netspi.h>
-#include <wine/debug.h>
-//#include "winerror.h"
-
-WINE_DEFAULT_DEBUG_CHANNEL(mpr);
-
-//#include "wine/unicode.h"
+#include "precomp.h"
 
+#include "netspi.h"
 #include "mprres.h"
 
 /***********************************************************************
diff --git a/reactos/dll/win32/mpr/precomp.h b/reactos/dll/win32/mpr/precomp.h
new file mode 100644 (file)
index 0000000..bdda98b
--- /dev/null
@@ -0,0 +1,18 @@
+#ifndef _MPR_PCH_
+#define _MPR_PCH_
+
+#include <config.h>
+
+#include <stdarg.h>
+
+#define WIN32_NO_STATUS
+#include <windef.h>
+#include <winbase.h>
+#include <winuser.h>
+#include <winreg.h>
+#include <winnetwk.h>
+
+#include <wine/debug.h>
+WINE_DEFAULT_DEBUG_CHANNEL(mpr);
+
+#endif /* _MPR_PCH_ */
index 290331a..e8db835 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define WIN32_NO_STATUS
+#include "precomp.h"
 
-//#include <stdarg.h>
 #include <stdio.h>
 
-#include <windef.h>
-#include <winbase.h>
-#include <winnetwk.h>
-#include <winreg.h>
-#include <wine/debug.h>
-
-WINE_DEFAULT_DEBUG_CHANNEL(mpr);
-
 static const char mpr_key[] = "Software\\Wine\\Wine\\Mpr\\";
 
 static inline BYTE hex( BYTE x )
index 806564a..16d23aa 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define WIN32_NO_STATUS
+#include "precomp.h"
 
-//#include <stdarg.h>
-#include <windef.h>
-//#include "winbase.h"
-//#include "winnls.h"
 #include <winioctl.h>
-#include <winnetwk.h>
 #include <npapi.h>
-#include <winreg.h>
-//#include "winuser.h"
 #define WINE_MOUNTMGR_EXTENSIONS
 #include <ddk/mountmgr.h>
-#include <wine/debug.h>
 #include <wine/unicode.h>
-#include "mprres.h"
-//#include "wnetpriv.h"
 
-WINE_DEFAULT_DEBUG_CHANNEL(mpr);
+#include "mprres.h"
 
 /* Data structures representing network service providers.  Assumes only one
  * thread creates them, and that they are constant for the life of the process