[DXDIAGN]
authorAmine Khaldi <amine.khaldi@reactos.org>
Mon, 20 Jan 2014 11:32:43 +0000 (11:32 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Mon, 20 Jan 2014 11:32:43 +0000 (11:32 +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 header inclusions.
* Improve the GUIDs situation.
CORE-7716

svn path=/trunk/; revision=61722

reactos/dll/directx/wine/dxdiagn/CMakeLists.txt
reactos/dll/directx/wine/dxdiagn/container.c
reactos/dll/directx/wine/dxdiagn/dxdiag_main.c
reactos/dll/directx/wine/dxdiagn/dxdiag_private.h
reactos/dll/directx/wine/dxdiagn/dxdiagn.rc
reactos/dll/directx/wine/dxdiagn/guid.c [new file with mode: 0644]
reactos/dll/directx/wine/dxdiagn/provider.c
reactos/dll/directx/wine/dxdiagn/resource.h

index 182b004..3dfae13 100644 (file)
@@ -7,6 +7,7 @@ list(APPEND SOURCE
     container.c
     dxdiag_main.c
     provider.c
+    guid.c
     ${CMAKE_CURRENT_BINARY_DIR}/dxdiagn.def)
 
 add_idl_headers(dxdiagn_idlheader fil_data.idl)
index 9b7591a..dd587c3 100644 (file)
  *
  */
 
-#include <config.h>
-
-#define COBJMACROS
 #include "dxdiag_private.h"
-#include <wine/debug.h>
-#include <wine/unicode.h>
-
-WINE_DEFAULT_DEBUG_CHANNEL(dxdiag);
 
 static inline IDxDiagContainerImpl *impl_from_IDxDiagContainer(IDxDiagContainer *iface)
 {
index 58f8917..874a784 100644 (file)
  *
  */
 
-#define COBJMACROS
-
-#include <config.h>
-#include <stdarg.h>
-
-#include <windef.h>
-#include <winbase.h>
-#include <objbase.h>
-#include <oleauto.h>
-#include <oleidl.h>
-#include <rpcproxy.h>
-#include <initguid.h>
 #include "dxdiag_private.h"
-#include <wine/debug.h>
 
-WINE_DEFAULT_DEBUG_CHANNEL(dxdiag);
+#include <rpcproxy.h>
 
 HINSTANCE dxdiagn_instance = 0;
 
index ae73a0f..c17505a 100644 (file)
 #ifndef __WINE_DXDIAG_PRIVATE_H
 #define __WINE_DXDIAG_PRIVATE_H
 
+#include <wine/config.h>
+
+#include <stdarg.h>
+
 #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 <wingdi.h>
 
-#include <wine/list.h>
+#include <wine/debug.h>
 #include <wine/dxdiag.h>
+#include <wine/list.h>
+#include <wine/unicode.h>
 
 #include "resource.h"
 
+WINE_DEFAULT_DEBUG_CHANNEL(dxdiag);
+
 /* DXDiag Interfaces: */
 typedef struct IDxDiagProviderImpl  IDxDiagProviderImpl;
 typedef struct IDxDiagContainerImpl IDxDiagContainerImpl;
index 2661737..61e1e05 100644 (file)
@@ -16,6 +16,8 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
+#include <windef.h>
+
 #include "resource.h"
 
 LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT
diff --git a/reactos/dll/directx/wine/dxdiagn/guid.c b/reactos/dll/directx/wine/dxdiagn/guid.c
new file mode 100644 (file)
index 0000000..d72e84c
--- /dev/null
@@ -0,0 +1,18 @@
+/* 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 <wingdi.h>
+#include <objbase.h>
+#include <initguid.h>
+#include <fil_data.h>
+#include <wbemcli.h>
+#include <wine/dxdiag.h>
+
+/* NO CODE HERE, THIS IS JUST REQUIRED FOR THE GUID DEFINITIONS */
index cb4efff..093a34d 100644 (file)
  *
  */
 
-#include <config.h>
-
-#define COBJMACROS
-#define NONAMELESSUNION
-#define NONAMELESSSTRUCT
 #include "dxdiag_private.h"
-#include <wine/unicode.h>
+
 #include <winver.h>
-#include <wingdi.h>
-#include <objidl.h>
 #include <uuids.h>
-#include <vfw.h>
-#include <mmddk.h>
 #include <d3d9.h>
-#include <strmif.h>
-#include <initguid.h>
 #include <fil_data.h>
 #include <psapi.h>
 #include <wbemcli.h>
 
-#include <wine/debug.h>
-
-WINE_DEFAULT_DEBUG_CHANNEL(dxdiag);
-
 static const WCHAR szEmpty[] = {0};
 
 static HRESULT build_information_tree(IDxDiagContainerImpl_Container **pinfo_root);
index dd6c1a3..2627a18 100644 (file)
@@ -18,7 +18,7 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include <windef.h>
+#pragma once
 
 #define IDS_REGIONAL_SETTING 1
 #define IDS_PAGE_FILE_FORMAT 2