[SCRRUN]
authorAmine Khaldi <amine.khaldi@reactos.org>
Fri, 27 Dec 2013 11:14:56 +0000 (11:14 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Fri, 27 Dec 2013 11:14:56 +0000 (11:14 +0000)
* Move some inclusions to the main header.
* Set the default debugging channel globally through the main header.
* Remove inclusions and definitions that already exist in the main header.
* Improve the GUIDs situation.
CORE-7716

svn path=/trunk/; revision=61442

reactos/dll/win32/scrrun/CMakeLists.txt
reactos/dll/win32/scrrun/dictionary.c
reactos/dll/win32/scrrun/filesystem.c
reactos/dll/win32/scrrun/guid.c [new file with mode: 0644]
reactos/dll/win32/scrrun/scrrun.c
reactos/dll/win32/scrrun/scrrun_private.h

index a30bdbe..b5cdc67 100644 (file)
@@ -10,6 +10,7 @@ list(APPEND SOURCE
     dictionary.c
     filesystem.c
     scrrun.c
+    guid.c
     ${CMAKE_CURRENT_BINARY_DIR}/scrrun_stubs.c
     ${CMAKE_CURRENT_BINARY_DIR}/scrrun.def)
 
index 4fcaedd..9a5e8b9 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
  */
-#define COBJMACROS
 
-#include "config.h"
-#include <stdarg.h>
-
-#include "windef.h"
-#include "winbase.h"
-#include "ole2.h"
-#include "dispex.h"
-#include "scrrun.h"
 #include "scrrun_private.h"
 
-#include "wine/debug.h"
-
-WINE_DEFAULT_DEBUG_CHANNEL(scrrun);
-
 typedef struct
 {
     IDictionary IDictionary_iface;
index 2750108..79c37c9 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define COBJMACROS
-
-#include "config.h"
-#include <stdarg.h>
-#include <limits.h>
-
-#include "windef.h"
-#include "winbase.h"
-#include "ole2.h"
-#include "olectl.h"
-#include "dispex.h"
-#include "ntsecapi.h"
-#include "scrrun.h"
 #include "scrrun_private.h"
 
-#include "wine/debug.h"
-#include "wine/unicode.h"
-
-WINE_DEFAULT_DEBUG_CHANNEL(scrrun);
+#include <winver.h>
+#include <olectl.h>
+#include <ntsecapi.h>
 
 struct folder {
     IFolder IFolder_iface;
diff --git a/reactos/dll/win32/scrrun/guid.c b/reactos/dll/win32/scrrun/guid.c
new file mode 100644 (file)
index 0000000..b753b74
--- /dev/null
@@ -0,0 +1,15 @@
+/* DO NOT USE THE PRECOMPILED HEADER FOR THIS FILE! */
+
+#include <stdarg.h>
+
+#define WIN32_NO_STATUS
+#define _INC_WINDOWS
+#define COM_NO_WINDOWS_H
+
+#include <windef.h>
+#include <winbase.h>
+#include <objbase.h>
+#include <initguid.h>
+#include <scrrun.h>
+
+/* NO CODE HERE, THIS IS JUST REQUIRED FOR THE GUID DEFINITIONS */
index 82f494f..23b3975 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
  */
-#define COBJMACROS
 
-#include "config.h"
-#include <stdarg.h>
-
-#include "windef.h"
-#include "winbase.h"
-#include "ole2.h"
-#include "rpcproxy.h"
-
-#include <initguid.h>
-#include "scrrun.h"
 #include "scrrun_private.h"
 
-#include "wine/debug.h"
-
-WINE_DEFAULT_DEBUG_CHANNEL(scrrun);
+#include <rpcproxy.h>
 
 static HINSTANCE scrrun_instance;
 
index 1a8f079..7801bcf 100644 (file)
 #ifndef _SCRRUN_PRIVATE_H_
 #define _SCRRUN_PRIVATE_H_
 
+#include <config.h>
+
+#include <stdarg.h>
+
+#define WIN32_NO_STATUS
+#define _INC_WINDOWS
+#define COM_NO_WINDOWS_H
+
+#define COBJMACROS
+
+#include <windef.h>
+#include <winbase.h>
+#include <objbase.h>
+#include <oleauto.h>
+#include <dispex.h>
+#include <scrrun.h>
+
+#include <wine/unicode.h>
+
+#include <wine/debug.h>
+WINE_DEFAULT_DEBUG_CHANNEL(scrrun);
+
 extern HRESULT WINAPI FileSystem_CreateInstance(IClassFactory*,IUnknown*,REFIID,void**) DECLSPEC_HIDDEN;
 extern HRESULT WINAPI Dictionary_CreateInstance(IClassFactory*,IUnknown*,REFIID,void**) DECLSPEC_HIDDEN;