[RPCRT4]
authorAmine Khaldi <amine.khaldi@reactos.org>
Fri, 27 Dec 2013 10:14:26 +0000 (10:14 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Fri, 27 Dec 2013 10:14:26 +0000 (10:14 +0000)
* Create a main header and move some inclusions to it.
* Remove inclusions and definitions that already exist in the main header.
CORE-7716

svn path=/trunk/; revision=61437

27 files changed:
reactos/dll/win32/rpcrt4/cproxy.c
reactos/dll/win32/rpcrt4/cpsf.c
reactos/dll/win32/rpcrt4/cstub.c
reactos/dll/win32/rpcrt4/epm_towers.h
reactos/dll/win32/rpcrt4/ncastatus.h
reactos/dll/win32/rpcrt4/ndr_clientserver.c
reactos/dll/win32/rpcrt4/ndr_contexthandle.c
reactos/dll/win32/rpcrt4/ndr_es.c
reactos/dll/win32/rpcrt4/ndr_fullpointer.c
reactos/dll/win32/rpcrt4/ndr_marshall.c
reactos/dll/win32/rpcrt4/ndr_misc.h
reactos/dll/win32/rpcrt4/ndr_ole.c
reactos/dll/win32/rpcrt4/ndr_stubless.c
reactos/dll/win32/rpcrt4/ndr_stubless.h
reactos/dll/win32/rpcrt4/precomp.h [new file with mode: 0644]
reactos/dll/win32/rpcrt4/rpc_assoc.c
reactos/dll/win32/rpcrt4/rpc_assoc.h
reactos/dll/win32/rpcrt4/rpc_async.c
reactos/dll/win32/rpcrt4/rpc_binding.c
reactos/dll/win32/rpcrt4/rpc_binding.h
reactos/dll/win32/rpcrt4/rpc_epmap.c
reactos/dll/win32/rpcrt4/rpc_message.c
reactos/dll/win32/rpcrt4/rpc_message.h
reactos/dll/win32/rpcrt4/rpc_server.c
reactos/dll/win32/rpcrt4/rpc_server.h
reactos/dll/win32/rpcrt4/rpc_transport.c
reactos/dll/win32/rpcrt4/rpcrt4_main.c

index 54609b9..bc5fcf0 100644 (file)
  * TODO: Handle non-i386 architectures
  */
 
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include <config.h>
-//#include "wine/port.h"
-
-#include <stdarg.h>
-
-#define COBJMACROS
-
-#include <windef.h>
-#include <winbase.h>
-//#include "winerror.h"
-
-#include <objbase.h>
-#include <rpcproxy.h>
-
-#include "cpsf.h"
-//#include "ndr_misc.h"
-//#include "ndr_stubless.h"
-#include <wine/debug.h>
+#include "precomp.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(ole);
 
index fffaeb2..72029a6 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
+#include "precomp.h"
 
-#include <config.h>
-//#include "wine/port.h"
-
-#include <stdarg.h>
-//#include <stdio.h>
-//#include <string.h>
-
-#define COBJMACROS
-
-#include <windef.h>
-#include <winbase.h>
-//#include "winerror.h"
 #include <winreg.h>
 
-#include <objbase.h>
-
-#include <rpcproxy.h>
-
-#include <wine/unicode.h>
-#include <wine/debug.h>
-
-#include "cpsf.h"
-
 WINE_DEFAULT_DEBUG_CHANNEL(ole);
 
 static void format_clsid( WCHAR *buffer, const CLSID *clsid )
index 7132221..d3a26d7 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include <config.h>
-//#include "wine/port.h"
-
-#include <stdarg.h>
-
-#define COBJMACROS
-
-#include <windef.h>
-#include <winbase.h>
-//#include "winerror.h"
-//#include "excpt.h"
-
-#include <objbase.h>
-#include <rpcproxy.h>
-
-#include <wine/debug.h>
-#include <wine/exception.h>
-
-#include "cpsf.h"
+#include "precomp.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(ole);
 
index ba6d413..6208deb 100644 (file)
@@ -19,6 +19,8 @@
  *
  */
 
+#pragma once
+
 #include <epm_c.h>
 
 #define EPM_PROTOCOL_DNET_NSP          0x04
index 0a97002..acf0f64 100644 (file)
@@ -18,6 +18,8 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
+#pragma once
+
 #define NCA_S_COMM_FAILURE               0x1C010001
 #define NCA_S_OP_RNG_ERROR               0x1C010002
 #define NCA_S_UNK_IF                     0x1C010003
index 8415991..b65b39e 100644 (file)
  *  - check for errors and throw exceptions
  */
 
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include <stdarg.h>
-
-#define COBJMACROS
-
-#include <windef.h>
-#include <winbase.h>
-//#include "winerror.h"
-
-#include <objbase.h>
-
-//#include "rpcproxy.h"
-
-#include <wine/debug.h>
-
-//#include "ndr_misc.h"
-//#include "rpcndr.h"
+#include "precomp.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(rpc);
 
index c63e20f..4855be3 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "ndr_misc.h"
-#include "rpc_assoc.h"
-//#include "rpcndr.h"
-
-//#include "wine/rpcfc.h"
-
-#include <wine/debug.h>
-//#include "wine/list.h"
-
-#ifdef __REACTOS__
-DEFINE_GUID(GUID_NULL,0,0,0,0,0,0,0,0,0,0,0);
-#endif
+#include "precomp.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(ole);
 
index 544f945..95a2303 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
+#include "precomp.h"
 
-#include <stdarg.h>
-//#include <stdio.h>
-
-#include <windef.h>
-#include <winbase.h>
-//#include "winerror.h"
-#include <rpc.h>
 #include <midles.h>
-//#include "ndrtypes.h"
-
-//#include "ndr_misc.h"
-#include "ndr_stubless.h"
-
-#include <wine/debug.h>
-#include <wine/rpcfc.h>
 
 WINE_DEFAULT_DEBUG_CHANNEL(ole);
 
index eaf0608..941cb29 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include <stdarg.h>
-
-#include <windef.h>
-#include <winbase.h>
-#include <rpc.h>
-#include <rpcndr.h>
-
-#include <wine/debug.h>
+#include "precomp.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(rpc);
 
index 3e58ceb..cff8185 100644 (file)
  *  - Checks for integer addition overflow in user marshall functions
  */
 
-#include <assert.h>
-//#include <stdarg.h>
-//#include <stdio.h>
-//#include <string.h>
-//#include <limits.h>
-
-#define NONAMELESSUNION
-//#include "windef.h"
-//#include "winbase.h"
-//#include "winerror.h"
-
-#include "ndr_misc.h"
-//#include "rpcndr.h"
-#include <ndrtypes.h>
-
-#include <wine/unicode.h>
-#include <wine/rpcfc.h>
-
-#include <wine/debug.h>
+#include "precomp.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(ole);
 
index 1c16cc0..c80afc2 100644 (file)
 #ifndef __WINE_NDR_MISC_H
 #define __WINE_NDR_MISC_H
 
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include <stdarg.h>
-
-#include <windef.h>
-#include <winbase.h>
-#include <rpc.h>
-#include <rpcndr.h>
-
 struct IPSFactoryBuffer;
 
 PFORMAT_STRING ComputeConformanceOrVariance(
index d4de1ab..56c8852 100644 (file)
  *  - finish RpcStream_Vtbl
  */
 
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include <stdarg.h>
-//#include <stdio.h>
-//#include <string.h>
-
-#define COBJMACROS
-#define NONAMELESSUNION
-#define NONAMELESSSTRUCT
-
-#include <windef.h>
-#include <winbase.h>
-//#include "winerror.h"
-
-#include <objbase.h>
-
-#include "ndr_misc.h"
-//#include "rpcndr.h"
-//#include "rpcproxy.h"
-#include <wine/rpcfc.h>
-//#include "cpsf.h"
-
-#include <wine/debug.h>
+#include "precomp.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(ole);
 
index caabef9..e43ddde 100644 (file)
  *  - Some types of binding handles
  */
 
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include <config.h>
-//#include "wine/port.h"
-
-//#include <stdarg.h>
-#include <stdio.h>
-//#include <string.h>
-
-#include <windef.h>
-#include <winbase.h>
-//#include "winerror.h"
-
-#include <objbase.h>
-//#include "rpc.h"
-#include <rpcproxy.h>
-
-#include <wine/exception.h>
-#include <wine/debug.h>
-#include <wine/rpcfc.h>
-
-#include "cpsf.h"
-#include "ndr_misc.h"
-#include "ndr_stubless.h"
+#include "precomp.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(rpc);
 
index 92e6813..fe067f5 100644 (file)
@@ -18,6 +18,8 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
+#pragma once
+
 #include <ndrtypes.h>
 
 /* there can't be any alignment with the structures in this file */
diff --git a/reactos/dll/win32/rpcrt4/precomp.h b/reactos/dll/win32/rpcrt4/precomp.h
new file mode 100644 (file)
index 0000000..e67f2e4
--- /dev/null
@@ -0,0 +1,40 @@
+#ifndef _RPCRT4_PCH_
+#define _RPCRT4_PCH_
+
+#include <config.h>
+
+#include <assert.h>
+#include <stdarg.h>
+#include <stdio.h>
+
+#define _INC_WINDOWS
+
+#define COBJMACROS
+#define NONAMELESSUNION
+#define NONAMELESSSTRUCT
+
+#include <ntstatus.h>
+#define WIN32_NO_STATUS
+#include <windef.h>
+#include <winbase.h>
+#include <winternl.h>
+#include <objbase.h>
+#include <rpcproxy.h>
+#include <security.h>
+
+#include <wine/debug.h>
+#include <wine/exception.h>
+#include <wine/list.h>
+#include <wine/rpcfc.h>
+#include <wine/unicode.h>
+
+#include "cpsf.h"
+#include "ncastatus.h"
+#include "ndr_misc.h"
+#include "ndr_stubless.h"
+#include "rpc_assoc.h"
+#include "rpc_binding.h"
+#include "rpc_message.h"
+#include "rpc_server.h"
+
+#endif /* _RPCRT4_PCH_ */
index 242de5a..2ef0260 100644 (file)
  *
  */
 
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include <stdarg.h>
-#include <assert.h>
-
-#include <windef.h>
-#include <winbase.h>
-#include <rpc.h>
-//#include "rpcndr.h"
-#include <winternl.h>
-
-#include <wine/unicode.h>
-#include <wine/debug.h>
-
-//#include "rpc_binding.h"
-#include "rpc_assoc.h"
-#include "rpc_message.h"
+#include "precomp.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(rpc);
 
index 6dd7ed1..ddbc274 100644 (file)
@@ -20,7 +20,6 @@
  */
 
 #include "rpc_binding.h"
-//#include "wine/list.h"
 
 typedef struct _RpcAssoc
 {
index eb81b54..d4dbf16 100644 (file)
  *
  */
 
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include <stdarg.h>
-
-#include <windef.h>
-#include <winbase.h>
-#include <rpc.h>
-#include <rpcndr.h>
-//#include "rpcasync.h"
-
-#include <wine/debug.h>
-
-//#include "rpc_binding.h"
-//#include "rpc_message.h"
-#include "ndr_stubless.h"
+#include "precomp.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(rpc);
 
index da78832..9916fad 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include <stdarg.h>
-//#include <stdio.h>
-//#include <string.h>
-//#include <assert.h>
-
-#include <windef.h>
-#include <winbase.h>
-//#include "winnls.h"
-//#include "winerror.h"
-//#include "winternl.h"
-#include <wine/unicode.h>
-
-#include <rpc.h>
-//#include "rpcndr.h"
-
-#include <wine/debug.h>
-
-//#include "rpc_binding.h"
-#include "rpc_assoc.h"
+#include "precomp.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(rpc);
 
index 74ace91..831ce25 100644 (file)
 #ifndef __WINE_RPC_BINDING_H
 #define __WINE_RPC_BINDING_H
 
-//#include "rpcndr.h"
-#include <security.h>
-#include <wine/list.h>
 #include "rpc_defs.h"
 
-
 enum secure_packet_direction
 {
   SECURE_PACKET_SEND,
index 1b52f0d..07a76b5 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include <stdarg.h>
-
-#include <windef.h>
-#include <winbase.h>
-//#include "winerror.h"
-
-#include <rpc.h>
-
-#include <wine/debug.h>
-#include <wine/exception.h>
-
-#include "rpc_binding.h"
-//#include "epm_c.h"
+#include "precomp.h"
 #include "epm_towers.h"
 
-#ifdef __REACTOS__
-DEFINE_GUID(GUID_NULL,0,0,0,0,0,0,0,0,0,0,0);
-#endif
-
 WINE_DEFAULT_DEBUG_CHANNEL(ole);
 
 /* The "real" RPC portmapper endpoints that I know of are:
index 17a7edc..b3cfe5a 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define _INC_WINDOWS
+#include "precomp.h"
 
-#include <stdarg.h>
-//#include <stdio.h>
-//#include <string.h>
-
-#include <windef.h>
-#include <winbase.h>
-//#include "winerror.h"
 #include <winuser.h>
 
-#include <rpc.h>
-//#include "rpcndr.h"
-//#include "rpcdcep.h"
-
-#include <wine/debug.h>
-
-#include "rpc_binding.h"
-//#include "rpc_defs.h"
-#include "rpc_message.h"
-#include "ncastatus.h"
-
 WINE_DEFAULT_DEBUG_CHANNEL(rpc);
 
 /* note: the DCE/RPC spec says the alignment amount should be 4, but
index 119b4a0..30065dd 100644 (file)
@@ -21,8 +21,6 @@
 #ifndef __WINE_RPC_MESSAGE_H
 #define __WINE_RPC_MESSAGE_H
 
-//#include "rpc_defs.h"
-
 typedef unsigned int NCA_STATUS;
 
 RpcPktHdr *RPCRT4_BuildFaultHeader(ULONG DataRepresentation, RPC_STATUS Status) DECLSPEC_HIDDEN;
index 59c1653..436a014 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define _INC_WINDOWS
+#include "precomp.h"
 
-#include <config.h>
-//#include "wine/port.h"
-
-#include <stdarg.h>
-//#include <stdio.h>
-//#include <string.h>
-#include <assert.h>
-
-#include <windef.h>
-#include <winbase.h>
-//#include "winerror.h"
-
-#include <rpc.h>
-//#include "rpcndr.h"
-//#include "excpt.h"
-
-#include <wine/debug.h>
-#include <wine/exception.h>
-
-#include "rpc_server.h"
-#include "rpc_assoc.h"
-#include "rpc_message.h"
-//#include "rpc_defs.h"
-#include "ncastatus.h"
 #include <secext.h>
 
 WINE_DEFAULT_DEBUG_CHANNEL(rpc);
index 4cf5439..04f32df 100644 (file)
@@ -22,7 +22,6 @@
 #define __WINE_RPC_SERVER_H
 
 #include "rpc_binding.h"
-//#include "wine/list.h"
 
 struct protseq_ops;
 
index 01a64bf..e48b1cd 100644 (file)
  *
  */
 
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include <config.h>
-
-//#include <stdarg.h>
-#include <stdio.h>
-//#include <string.h>
-#include <assert.h>
-//#include <stdlib.h>
-//#include <sys/types.h>
-
-#include <windef.h>
-#include <winbase.h>
+#include "precomp.h"
 
 #if defined(__MINGW32__) || defined (_MSC_VER)
 # include <ws2tcpip.h>
 # define ioctlsocket ioctl
 #endif /* defined(__MINGW32__) || defined (_MSC_VER) */
 
-//#include "winnls.h"
-//#include "winerror.h"
 #include <wininet.h>
-#include <winternl.h>
-#include <wine/unicode.h>
-
-#include <rpc.h>
-//#include "rpcndr.h"
-
-#include <wine/debug.h>
 
-//#include "rpc_binding.h"
-#include "rpc_assoc.h"
-#include "rpc_message.h"
-#include "rpc_server.h"
 #include "epm_towers.h"
 
 #ifndef SOL_TCP
index f00e123..1b0d79f 100644 (file)
  *   NT-based native rpcrt4's.  Commonly-used transport for self-to-self RPC's.
  */
 
-#include <config.h>
-
-#include <stdarg.h>
-#include <stdio.h>
-//#include <stdlib.h>
-//#include <string.h>
-
-#include "ntstatus.h"
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-#include <windef.h>
-//#include "winerror.h"
-#include <winbase.h>
-//#include "winuser.h"
-//#include "winnt.h"
-#include <winternl.h>
+#include "precomp.h"
+
 #include <ntsecapi.h>
-//#include "iptypes.h"
 #include <iphlpapi.h>
-#include <wine/unicode.h>
-#include <rpc.h>
-
-//#include "ole2.h"
-//#include "rpcndr.h"
-//#include "rpcproxy.h"
-
-//#include "rpc_binding.h"
-#include "rpc_server.h"
-
-#include <wine/debug.h>
 
 WINE_DEFAULT_DEBUG_CHANNEL(rpc);