From: Amine Khaldi Date: Thu, 26 Dec 2013 19:11:46 +0000 (+0000) Subject: [PROPSYS] X-Git-Tag: ReactOS-0.3.16~422 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=4e381684041412ab7ad8217408801b98737aa1f1 [PROPSYS] * 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. CORE-7716 svn path=/trunk/; revision=61431 --- diff --git a/reactos/dll/win32/propsys/propstore.c b/reactos/dll/win32/propsys/propstore.c index 7bb6de25290..a7387715bba 100644 --- a/reactos/dll/win32/propsys/propstore.c +++ b/reactos/dll/win32/propsys/propstore.c @@ -18,31 +18,13 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#define WIN32_NO_STATUS -#define _INC_WINDOWS -#define COM_NO_WINDOWS_H - -#define COBJMACROS -#include - -#include - -#include -#include -#include -//#include "rpcproxy.h" -#include -#include -//#include "wine/unicode.h" +#include "propsys_private.h" + #include #include -//#include "propsys_private.h" - DEFINE_GUID(FMTID_NamedProperties, 0xd5cdd505, 0x2e9c, 0x101b, 0x93, 0x97, 0x08, 0x00, 0x2b, 0x2c, 0xf9, 0xae); -WINE_DEFAULT_DEBUG_CHANNEL(propsys); - typedef struct { struct list entry; DWORD pid; diff --git a/reactos/dll/win32/propsys/propsys_main.c b/reactos/dll/win32/propsys/propsys_main.c index 118a489d6a5..7a4cd612809 100644 --- a/reactos/dll/win32/propsys/propsys_main.c +++ b/reactos/dll/win32/propsys/propsys_main.c @@ -19,26 +19,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#define WIN32_NO_STATUS -#define _INC_WINDOWS -#define COM_NO_WINDOWS_H - -#define COBJMACROS -#include - -#include - -#include -#include -#include -#include -#include -#include -#include - #include "propsys_private.h" -WINE_DEFAULT_DEBUG_CHANNEL(propsys); +#include static HINSTANCE propsys_hInstance; diff --git a/reactos/dll/win32/propsys/propsys_private.h b/reactos/dll/win32/propsys/propsys_private.h index 35bbb4d5a36..092c8bad289 100644 --- a/reactos/dll/win32/propsys/propsys_private.h +++ b/reactos/dll/win32/propsys/propsys_private.h @@ -18,4 +18,25 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#include + +#include + +#define WIN32_NO_STATUS +#define _INC_WINDOWS +#define COM_NO_WINDOWS_H + +#define COBJMACROS +#define NONAMELESSUNION + +#include +#include +#include +#include + +#include +#include + +WINE_DEFAULT_DEBUG_CHANNEL(propsys); + HRESULT PropertyStore_CreateInstance(IUnknown *outer, REFIID riid, void **ppv) DECLSPEC_HIDDEN; diff --git a/reactos/dll/win32/propsys/propvar.c b/reactos/dll/win32/propsys/propvar.c index 117d7f54f2a..2a9a69c2faf 100644 --- a/reactos/dll/win32/propsys/propvar.c +++ b/reactos/dll/win32/propsys/propvar.c @@ -18,28 +18,13 @@ * 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 "propsys_private.h" -//#include #include - -#define NONAMELESSUNION - -#include -#include -//#include "winerror.h" #include -//#include "winuser.h" -#include +#include #include -#include -#include - -WINE_DEFAULT_DEBUG_CHANNEL(propsys); - static HRESULT PROPVAR_ConvertFILETIME(PROPVARIANT *ppropvarDest, REFPROPVARIANT propvarSrc, VARTYPE vt) {