Author: akhaldi
Date: Sat Jan 25 18:44:55 2014
New Revision: 61814
URL:
http://svn.reactos.org/svn/reactos?rev=61814&view=rev
Log:
[STI]
* Create a main header and move some inclusions to it.
* Set the default debugging channel globally through the main header.
* Improve the GUIDs situation.
CORE-7716
Added:
trunk/reactos/dll/win32/sti/guid.c (with props)
trunk/reactos/dll/win32/sti/precomp.h (with props)
Modified:
trunk/reactos/dll/win32/sti/CMakeLists.txt
trunk/reactos/dll/win32/sti/sti.c
trunk/reactos/dll/win32/sti/sti_main.c
Modified: trunk/reactos/dll/win32/sti/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/sti/CMakeLists.t…
==============================================================================
--- trunk/reactos/dll/win32/sti/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/sti/CMakeLists.txt [iso-8859-1] Sat Jan 25 18:44:55 2014
@@ -11,6 +11,7 @@
list(APPEND SOURCE
sti.c
sti_main.c
+ guid.c
${CMAKE_CURRENT_BINARY_DIR}/proxy.dlldata.c
${CMAKE_CURRENT_BINARY_DIR}/sti_wia_p.c
${CMAKE_CURRENT_BINARY_DIR}/sti.def)
Added: trunk/reactos/dll/win32/sti/guid.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/sti/guid.c?rev=6…
==============================================================================
--- trunk/reactos/dll/win32/sti/guid.c (added)
+++ trunk/reactos/dll/win32/sti/guid.c [iso-8859-1] Sat Jan 25 18:44:55 2014
@@ -0,0 +1,14 @@
+/* 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 <initguid.h>
+#include <sti.h>
+
+/* NO CODE HERE, THIS IS JUST REQUIRED FOR THE GUID DEFINITIONS */
Propchange: trunk/reactos/dll/win32/sti/guid.c
------------------------------------------------------------------------------
svn:eol-style = native
Added: trunk/reactos/dll/win32/sti/precomp.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/sti/precomp.h?re…
==============================================================================
--- trunk/reactos/dll/win32/sti/precomp.h (added)
+++ trunk/reactos/dll/win32/sti/precomp.h [iso-8859-1] Sat Jan 25 18:44:55 2014
@@ -0,0 +1,19 @@
+#ifndef _STI_PCH_
+#define _STI_PCH_
+
+#include <stdarg.h>
+
+#define WIN32_NO_STATUS
+#define _INC_WINDOWS
+#define COM_NO_WINDOWS_H
+
+#define COBJMACROS
+
+#include <windef.h>
+#include <winbase.h>
+#include <sti.h>
+
+#include <wine/debug.h>
+WINE_DEFAULT_DEBUG_CHANNEL(sti);
+
+#endif /* _STI_PCH_ */
Propchange: trunk/reactos/dll/win32/sti/precomp.h
------------------------------------------------------------------------------
svn:eol-style = native
Modified: trunk/reactos/dll/win32/sti/sti.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/sti/sti.c?rev=61…
==============================================================================
--- trunk/reactos/dll/win32/sti/sti.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/sti/sti.c [iso-8859-1] Sat Jan 25 18:44:55 2014
@@ -17,25 +17,11 @@
* 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
-
-#include <windef.h>
-#include <winbase.h>
+#include "precomp.h"
+
#include <winreg.h>
-//#include "winerror.h"
-//#include "objbase.h"
-#include <sti.h>
-
-#include <wine/debug.h>
+
#include <wine/unicode.h>
-
-WINE_DEFAULT_DEBUG_CHANNEL(sti);
static const WCHAR registeredAppsLaunchPath[] = {
'S','O','F','T','W','A','R','E','\\',
Modified: trunk/reactos/dll/win32/sti/sti_main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/sti/sti_main.c?r…
==============================================================================
--- trunk/reactos/dll/win32/sti/sti_main.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/sti/sti_main.c [iso-8859-1] Sat Jan 25 18:44:55 2014
@@ -17,26 +17,7 @@
* 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
-
-#include <windef.h>
-#include <winbase.h>
-//#include "winreg.h"
-//#include "winerror.h"
-//#include "objbase.h"
-#include <initguid.h>
-//#include "wia_lh.h"
-#include <sti.h>
-
-#include <wine/debug.h>
-
-WINE_DEFAULT_DEBUG_CHANNEL(sti);
+#include "precomp.h"
extern HRESULT WINAPI STI_DllGetClassObject(REFCLSID, REFIID, LPVOID *) DECLSPEC_HIDDEN;
extern BOOL WINAPI STI_DllMain(HINSTANCE, DWORD, LPVOID) DECLSPEC_HIDDEN;