diff --git a/reactos/dll/win32/mshtml/CMakeLists.txt b/reactos/dll/win32/mshtml/CMakeLists.txt
index a17e5694760..9921f275e73 100644
--- a/reactos/dll/win32/mshtml/CMakeLists.txt
+++ b/reactos/dll/win32/mshtml/CMakeLists.txt
@@ -85,6 +85,7 @@ list(APPEND SOURCE
task.c
txtrange.c
view.c
+ guid.c
rsrc.rc
${CMAKE_CURRENT_BINARY_DIR}/mshtml_stubs.c
${CMAKE_CURRENT_BINARY_DIR}/mshtml.def)
diff --git a/reactos/dll/win32/mshtml/conpoint.c b/reactos/dll/win32/mshtml/conpoint.c
index 404bec2a2b7..e2e8d754767 100644
--- a/reactos/dll/win32/mshtml/conpoint.c
+++ b/reactos/dll/win32/mshtml/conpoint.c
@@ -16,24 +16,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-#include
-
-#include
-
#include "mshtml_private.h"
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
-
static const char *debugstr_cp_guid(REFIID riid)
{
#define X(x) \
diff --git a/reactos/dll/win32/mshtml/dispex.c b/reactos/dll/win32/mshtml/dispex.c
index 9b9a3910bcd..33a131852b0 100644
--- a/reactos/dll/win32/mshtml/dispex.c
+++ b/reactos/dll/win32/mshtml/dispex.c
@@ -16,26 +16,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include
-#include
-
-#define COBJMACROS
-#define NONAMELESSUNION
-
-#include
-#include
-//#include "winuser.h"
-#include
-
-#include
-
#include "mshtml_private.h"
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
-
#define MAX_ARGS 16
static CRITICAL_SECTION cs_dispex_static_data;
diff --git a/reactos/dll/win32/mshtml/editor.c b/reactos/dll/win32/mshtml/editor.c
index becf21a2fa4..f2dc56473e8 100644
--- a/reactos/dll/win32/mshtml/editor.c
+++ b/reactos/dll/win32/mshtml/editor.c
@@ -16,27 +16,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-//#include
-#include
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-#include
-#include
-#include
-
-#include
-
#include "mshtml_private.h"
-#include "resource.h"
-
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
#define NSCMD_ALIGN "cmd_align"
#define NSCMD_BEGINLINE "cmd_beginLine"
diff --git a/reactos/dll/win32/mshtml/guid.c b/reactos/dll/win32/mshtml/guid.c
new file mode 100644
index 00000000000..fca5a138bd4
--- /dev/null
+++ b/reactos/dll/win32/mshtml/guid.c
@@ -0,0 +1,29 @@
+/* DO NOT USE THE PRECOMPILED HEADER FOR THIS FILE! */
+
+#include
+
+#define WIN32_NO_STATUS
+#define _INC_WINDOWS
+
+#include
+#include
+#include
+#include
+#include
+
+DEFINE_GUID(CLSID_AboutProtocol, 0x3050F406, 0x98B5, 0x11CF, 0xBB,0x82, 0x00,0xAA,0x00,0xBD,0xCE,0x0B);
+DEFINE_GUID(CLSID_JSProtocol, 0x3050F3B2, 0x98B5, 0x11CF, 0xBB,0x82, 0x00,0xAA,0x00,0xBD,0xCE,0x0B);
+DEFINE_GUID(CLSID_MailtoProtocol, 0x3050F3DA, 0x98B5, 0x11CF, 0xBB,0x82, 0x00,0xAA,0x00,0xBD,0xCE,0x0B);
+DEFINE_GUID(CLSID_ResProtocol, 0x3050F3BC, 0x98B5, 0x11CF, 0xBB,0x82, 0x00,0xAA,0x00,0xBD,0xCE,0x0B);
+DEFINE_GUID(CLSID_SysimageProtocol, 0x76E67A63, 0x06E9, 0x11D2, 0xA8,0x40, 0x00,0x60,0x08,0x05,0x93,0x82);
+
+DEFINE_GUID(CLSID_CMarkup,0x3050f4fb,0x98b5,0x11cf,0xbb,0x82,0x00,0xaa,0x00,0xbd,0xce,0x0b);
+
+DEFINE_OLEGUID(CGID_DocHostCmdPriv, 0x000214D4L, 0, 0);
+
+DEFINE_GUID(CLSID_JScript, 0xf414c260,0x6ac0,0x11cf, 0xb6,0xd1,0x00,0xaa,0x00,0xbb,0xbb,0x58);
+DEFINE_GUID(CLSID_VBScript, 0xb54f3741,0x5b07,0x11cf, 0xa4,0xb0,0x00,0xaa,0x00,0x4a,0x55,0xe8);
+
+DEFINE_GUID(IID_nsXPCOMCycleCollectionParticipant, 0x9674489b,0x1f6f,0x4550,0xa7,0x30, 0xcc,0xae,0xdd,0x10,0x4c,0xf9);
+
+/* NO CODE HERE, THIS IS JUST REQUIRED FOR THE GUID DEFINITIONS */
diff --git a/reactos/dll/win32/mshtml/hlink.c b/reactos/dll/win32/mshtml/hlink.c
index b6d874bd546..9bf57ae82f7 100644
--- a/reactos/dll/win32/mshtml/hlink.c
+++ b/reactos/dll/win32/mshtml/hlink.c
@@ -16,24 +16,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-#include
-
-#include
-
#include "mshtml_private.h"
-#include "binding.h"
-
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
/**********************************************************
* IHlinkTarget implementation
diff --git a/reactos/dll/win32/mshtml/htmlanchor.c b/reactos/dll/win32/mshtml/htmlanchor.c
index 0018933359f..4aee0f718ff 100644
--- a/reactos/dll/win32/mshtml/htmlanchor.c
+++ b/reactos/dll/win32/mshtml/htmlanchor.c
@@ -16,27 +16,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include
-//#include
-#include
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-#include
-
#include "mshtml_private.h"
-#include "htmlevent.h"
-#include "binding.h"
-
-#include
-
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
typedef struct {
HTMLElement element;
diff --git a/reactos/dll/win32/mshtml/htmlattr.c b/reactos/dll/win32/mshtml/htmlattr.c
index 8a468174f83..4eb734d2f81 100644
--- a/reactos/dll/win32/mshtml/htmlattr.c
+++ b/reactos/dll/win32/mshtml/htmlattr.c
@@ -16,25 +16,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include
-#include
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-#include
-
#include "mshtml_private.h"
-#include
-
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
-
static inline HTMLDOMAttribute *impl_from_IHTMLDOMAttribute(IHTMLDOMAttribute *iface)
{
return CONTAINING_RECORD(iface, HTMLDOMAttribute, IHTMLDOMAttribute_iface);
diff --git a/reactos/dll/win32/mshtml/htmlbody.c b/reactos/dll/win32/mshtml/htmlbody.c
index d9d0d5436d3..69ea194da16 100644
--- a/reactos/dll/win32/mshtml/htmlbody.c
+++ b/reactos/dll/win32/mshtml/htmlbody.c
@@ -16,25 +16,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include
-//#include
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-#include
-
-#include
-
#include "mshtml_private.h"
-#include "htmlevent.h"
-
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
typedef struct {
HTMLTextContainer textcont;
diff --git a/reactos/dll/win32/mshtml/htmlcomment.c b/reactos/dll/win32/mshtml/htmlcomment.c
index 80c101b11a5..c25c63fd664 100644
--- a/reactos/dll/win32/mshtml/htmlcomment.c
+++ b/reactos/dll/win32/mshtml/htmlcomment.c
@@ -16,25 +16,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-#include
-
#include "mshtml_private.h"
-#include
-
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
-
struct HTMLCommentElement {
HTMLElement element;
IHTMLCommentElement IHTMLCommentElement_iface;
diff --git a/reactos/dll/win32/mshtml/htmlcurstyle.c b/reactos/dll/win32/mshtml/htmlcurstyle.c
index 911ba552657..cc1fd9c7914 100644
--- a/reactos/dll/win32/mshtml/htmlcurstyle.c
+++ b/reactos/dll/win32/mshtml/htmlcurstyle.c
@@ -16,24 +16,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-#include
-
#include "mshtml_private.h"
-#include "htmlstyle.h"
-
-#include
-
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
struct HTMLCurrentStyle {
DispatchEx dispex;
diff --git a/reactos/dll/win32/mshtml/htmldoc.c b/reactos/dll/win32/mshtml/htmldoc.c
index 69cb446d6a9..6e1fc5db568 100644
--- a/reactos/dll/win32/mshtml/htmldoc.c
+++ b/reactos/dll/win32/mshtml/htmldoc.c
@@ -16,33 +16,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include
-
-#include
-//#include
-#include
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-#include
-#include
-//#include "perhist.h"
-#include
-
-#include
-
#include "mshtml_private.h"
-#include "htmlevent.h"
-#include "pluginhost.h"
-#include "binding.h"
-
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
static inline HTMLDocument *impl_from_IHTMLDocument2(IHTMLDocument2 *iface)
{
diff --git a/reactos/dll/win32/mshtml/htmldoc3.c b/reactos/dll/win32/mshtml/htmldoc3.c
index 3a4de0c0a69..01661f7b992 100644
--- a/reactos/dll/win32/mshtml/htmldoc3.c
+++ b/reactos/dll/win32/mshtml/htmldoc3.c
@@ -16,28 +16,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include
-
-#include
-//#include
-#include
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-#include
-
-#include
-
#include "mshtml_private.h"
-#include "htmlevent.h"
-
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
HRESULT get_doc_elem_by_id(HTMLDocumentNode *doc, const WCHAR *id, HTMLElement **ret)
{
diff --git a/reactos/dll/win32/mshtml/htmldoc5.c b/reactos/dll/win32/mshtml/htmldoc5.c
index e467091e1c0..71b8cb87497 100644
--- a/reactos/dll/win32/mshtml/htmldoc5.c
+++ b/reactos/dll/win32/mshtml/htmldoc5.c
@@ -16,27 +16,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include
-
-#include
-//#include
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-#include
-
-#include
-
#include "mshtml_private.h"
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
-
static inline HTMLDocument *impl_from_IHTMLDocument5(IHTMLDocument5 *iface)
{
return CONTAINING_RECORD(iface, HTMLDocument, IHTMLDocument5_iface);
diff --git a/reactos/dll/win32/mshtml/htmlelem.c b/reactos/dll/win32/mshtml/htmlelem.c
index 95601f12bb2..f0287d2ab75 100644
--- a/reactos/dll/win32/mshtml/htmlelem.c
+++ b/reactos/dll/win32/mshtml/htmlelem.c
@@ -16,28 +16,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include
-#include
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-//#include "winreg.h"
-#include
-//#include "shlwapi.h"
-
-#include
-
#include "mshtml_private.h"
-#include "htmlevent.h"
-#include "htmlstyle.h"
-
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
static const WCHAR aW[] = {'A',0};
static const WCHAR bodyW[] = {'B','O','D','Y',0};
diff --git a/reactos/dll/win32/mshtml/htmlelem2.c b/reactos/dll/win32/mshtml/htmlelem2.c
index a44a2118ecf..cd5f3d44b87 100644
--- a/reactos/dll/win32/mshtml/htmlelem2.c
+++ b/reactos/dll/win32/mshtml/htmlelem2.c
@@ -16,27 +16,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include
-#include
-#include
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-#include
-
-#include
-
#include "mshtml_private.h"
-#include "htmlevent.h"
-#include "htmlstyle.h"
-
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
typedef struct {
DispatchEx dispex;
diff --git a/reactos/dll/win32/mshtml/htmlelem3.c b/reactos/dll/win32/mshtml/htmlelem3.c
index f0b69c580a8..c5b4faaeca5 100644
--- a/reactos/dll/win32/mshtml/htmlelem3.c
+++ b/reactos/dll/win32/mshtml/htmlelem3.c
@@ -16,24 +16,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-#include
-
-#include
-
#include "mshtml_private.h"
-#include "htmlevent.h"
-
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
static inline HTMLElement *impl_from_IHTMLElement3(IHTMLElement3 *iface)
{
diff --git a/reactos/dll/win32/mshtml/htmlelemcol.c b/reactos/dll/win32/mshtml/htmlelemcol.c
index 56737087bb0..75596e89003 100644
--- a/reactos/dll/win32/mshtml/htmlelemcol.c
+++ b/reactos/dll/win32/mshtml/htmlelemcol.c
@@ -16,24 +16,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-#include
-
-#include
-
#include "mshtml_private.h"
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
-
typedef struct {
DispatchEx dispex;
IHTMLElementCollection IHTMLElementCollection_iface;
diff --git a/reactos/dll/win32/mshtml/htmlembed.c b/reactos/dll/win32/mshtml/htmlembed.c
index 8c9411ea769..6414af875bc 100644
--- a/reactos/dll/win32/mshtml/htmlembed.c
+++ b/reactos/dll/win32/mshtml/htmlembed.c
@@ -16,25 +16,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include
-
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-//#include "winreg.h"
-#include
-
-#include
-
#include "mshtml_private.h"
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
-
typedef struct {
HTMLElement element;
diff --git a/reactos/dll/win32/mshtml/htmlevent.c b/reactos/dll/win32/mshtml/htmlevent.c
index 595afec431d..4ed833b3c69 100644
--- a/reactos/dll/win32/mshtml/htmlevent.c
+++ b/reactos/dll/win32/mshtml/htmlevent.c
@@ -16,26 +16,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-#include
-#include
-
#include "mshtml_private.h"
-#include "htmlevent.h"
-#include "htmlscript.h"
-
-#include
-
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
typedef struct {
IDispatch *handler_prop;
diff --git a/reactos/dll/win32/mshtml/htmlform.c b/reactos/dll/win32/mshtml/htmlform.c
index 786664fff9f..0a0ed682df0 100644
--- a/reactos/dll/win32/mshtml/htmlform.c
+++ b/reactos/dll/win32/mshtml/htmlform.c
@@ -16,25 +16,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include
-#include
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-#include
-
-#include
-
#include "mshtml_private.h"
-#include "htmlevent.h"
-
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
struct HTMLFormElement {
HTMLElement element;
diff --git a/reactos/dll/win32/mshtml/htmlframe.c b/reactos/dll/win32/mshtml/htmlframe.c
index af6f50d26e2..cf03bfb20d7 100644
--- a/reactos/dll/win32/mshtml/htmlframe.c
+++ b/reactos/dll/win32/mshtml/htmlframe.c
@@ -16,24 +16,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-#include
-
#include "mshtml_private.h"
-#include
-
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
-
typedef struct {
HTMLFrameBase framebase;
IHTMLFrameElement3 IHTMLFrameElement3_iface;
diff --git a/reactos/dll/win32/mshtml/htmlframebase.c b/reactos/dll/win32/mshtml/htmlframebase.c
index ffa0dcae87e..c034f837e4b 100644
--- a/reactos/dll/win32/mshtml/htmlframebase.c
+++ b/reactos/dll/win32/mshtml/htmlframebase.c
@@ -16,25 +16,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include
-#include
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-#include
-
#include "mshtml_private.h"
-#include "binding.h"
-
-#include
-
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
static const WCHAR autoW[] = {'a','u','t','o',0};
static const WCHAR yesW[] = {'y','e','s',0};
diff --git a/reactos/dll/win32/mshtml/htmlgeneric.c b/reactos/dll/win32/mshtml/htmlgeneric.c
index a34688c83b2..f1d6a9d4a7e 100644
--- a/reactos/dll/win32/mshtml/htmlgeneric.c
+++ b/reactos/dll/win32/mshtml/htmlgeneric.c
@@ -16,24 +16,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-#include
-
-#include
-
#include "mshtml_private.h"
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
-
typedef struct {
HTMLElement element;
diff --git a/reactos/dll/win32/mshtml/htmlhead.c b/reactos/dll/win32/mshtml/htmlhead.c
index c63a3e7536d..fb81ae5e9f7 100644
--- a/reactos/dll/win32/mshtml/htmlhead.c
+++ b/reactos/dll/win32/mshtml/htmlhead.c
@@ -16,24 +16,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include
-
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-#include
-
-#include
-
#include "mshtml_private.h"
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
-
typedef struct {
HTMLElement element;
diff --git a/reactos/dll/win32/mshtml/htmliframe.c b/reactos/dll/win32/mshtml/htmliframe.c
index 6b9507bad25..e841f3255ec 100644
--- a/reactos/dll/win32/mshtml/htmliframe.c
+++ b/reactos/dll/win32/mshtml/htmliframe.c
@@ -16,24 +16,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-#include
-
#include "mshtml_private.h"
-#include
-
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
-
typedef struct {
HTMLFrameBase framebase;
IHTMLIFrameElement IHTMLIFrameElement_iface;
diff --git a/reactos/dll/win32/mshtml/htmlimg.c b/reactos/dll/win32/mshtml/htmlimg.c
index e8ffb312129..c8e9d10c0ac 100644
--- a/reactos/dll/win32/mshtml/htmlimg.c
+++ b/reactos/dll/win32/mshtml/htmlimg.c
@@ -16,25 +16,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include
-#include
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-#include
-
-#include
-
#include "mshtml_private.h"
-#include "htmlevent.h"
-
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
typedef struct {
HTMLElement element;
diff --git a/reactos/dll/win32/mshtml/htmlinput.c b/reactos/dll/win32/mshtml/htmlinput.c
index 78c4ebf6da9..62ed4e6f02e 100644
--- a/reactos/dll/win32/mshtml/htmlinput.c
+++ b/reactos/dll/win32/mshtml/htmlinput.c
@@ -16,26 +16,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include
-#include
-#include
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-#include
-
-#include
-
#include "mshtml_private.h"
-#include "htmlevent.h"
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
+#include
typedef struct {
HTMLElement element;
diff --git a/reactos/dll/win32/mshtml/htmllink.c b/reactos/dll/win32/mshtml/htmllink.c
index a9b65952a92..4b9d3bdb198 100644
--- a/reactos/dll/win32/mshtml/htmllink.c
+++ b/reactos/dll/win32/mshtml/htmllink.c
@@ -16,25 +16,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include
-#include
-
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-#include
-
-#include
-
#include "mshtml_private.h"
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
-
typedef struct {
HTMLElement element;
IHTMLLinkElement IHTMLLinkElement_iface;
diff --git a/reactos/dll/win32/mshtml/htmllocation.c b/reactos/dll/win32/mshtml/htmllocation.c
index ed0d5758bef..e2a0edda1a1 100644
--- a/reactos/dll/win32/mshtml/htmllocation.c
+++ b/reactos/dll/win32/mshtml/htmllocation.c
@@ -16,28 +16,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-//#include "winreg.h"
-#include
-#include
-//#include "shlwapi.h"
-
-#include
-
#include "mshtml_private.h"
-#include "binding.h"
-//#include "resource.h"
-
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
static HRESULT get_url(HTMLLocation *This, const WCHAR **ret)
{
diff --git a/reactos/dll/win32/mshtml/htmlmeta.c b/reactos/dll/win32/mshtml/htmlmeta.c
index 72d61b7a4fa..d6274ef3da4 100644
--- a/reactos/dll/win32/mshtml/htmlmeta.c
+++ b/reactos/dll/win32/mshtml/htmlmeta.c
@@ -16,24 +16,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include
-
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-#include
-
-#include
-
#include "mshtml_private.h"
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
-
typedef struct {
HTMLElement element;
diff --git a/reactos/dll/win32/mshtml/htmlnode.c b/reactos/dll/win32/mshtml/htmlnode.c
index bb5db965c36..0b3f0f8d425 100644
--- a/reactos/dll/win32/mshtml/htmlnode.c
+++ b/reactos/dll/win32/mshtml/htmlnode.c
@@ -16,25 +16,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include
-#include
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-#include
-
-#include
-
#include "mshtml_private.h"
-#include "htmlevent.h"
-
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
static HTMLDOMNode *get_node_obj(IHTMLDOMNode*);
static HRESULT create_node(HTMLDocumentNode*,nsIDOMNode*,HTMLDOMNode**);
diff --git a/reactos/dll/win32/mshtml/htmlobject.c b/reactos/dll/win32/mshtml/htmlobject.c
index 4efd223e1ac..553db2d1649 100644
--- a/reactos/dll/win32/mshtml/htmlobject.c
+++ b/reactos/dll/win32/mshtml/htmlobject.c
@@ -16,26 +16,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include
-#include
-
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-//#include "winreg.h"
-#include
-
-#include
-
#include "mshtml_private.h"
-#include "pluginhost.h"
-
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
typedef struct {
HTMLPluginContainer plugin_container;
diff --git a/reactos/dll/win32/mshtml/htmloption.c b/reactos/dll/win32/mshtml/htmloption.c
index 87a48b5a905..4621c4a83b7 100644
--- a/reactos/dll/win32/mshtml/htmloption.c
+++ b/reactos/dll/win32/mshtml/htmloption.c
@@ -16,25 +16,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include
-#include
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-#include
-
-#include
-
#include "mshtml_private.h"
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
-
struct HTMLOptionElement {
HTMLElement element;
diff --git a/reactos/dll/win32/mshtml/htmlscreen.c b/reactos/dll/win32/mshtml/htmlscreen.c
index 9986eeff7d6..eef50a1ade6 100644
--- a/reactos/dll/win32/mshtml/htmlscreen.c
+++ b/reactos/dll/win32/mshtml/htmlscreen.c
@@ -16,24 +16,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-#include
-
-#include
-
#include "mshtml_private.h"
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
-
typedef struct {
DispatchEx dispex;
IHTMLScreen IHTMLScreen_iface;
diff --git a/reactos/dll/win32/mshtml/htmlscript.c b/reactos/dll/win32/mshtml/htmlscript.c
index 316795629bd..09f2abebde4 100644
--- a/reactos/dll/win32/mshtml/htmlscript.c
+++ b/reactos/dll/win32/mshtml/htmlscript.c
@@ -16,25 +16,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include
-#include
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-#include
-
-#include
-
#include "mshtml_private.h"
-#include "htmlscript.h"
-
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
static inline HTMLScriptElement *impl_from_IHTMLScriptElement(IHTMLScriptElement *iface)
{
diff --git a/reactos/dll/win32/mshtml/htmlselect.c b/reactos/dll/win32/mshtml/htmlselect.c
index 12532d67edc..20cfb1c2e70 100644
--- a/reactos/dll/win32/mshtml/htmlselect.c
+++ b/reactos/dll/win32/mshtml/htmlselect.c
@@ -16,25 +16,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include
-#include
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-#include
-
-#include
-
#include "mshtml_private.h"
-#include "htmlevent.h"
-
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
typedef struct {
HTMLElement element;
diff --git a/reactos/dll/win32/mshtml/htmlstorage.c b/reactos/dll/win32/mshtml/htmlstorage.c
index 9ad18e50299..d6b11c127b1 100644
--- a/reactos/dll/win32/mshtml/htmlstorage.c
+++ b/reactos/dll/win32/mshtml/htmlstorage.c
@@ -16,24 +16,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include
-
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-#include
-
-#include
-
#include "mshtml_private.h"
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
-
typedef struct {
DispatchEx dispex;
IHTMLStorage IHTMLStorage_iface;
diff --git a/reactos/dll/win32/mshtml/htmlstyle.c b/reactos/dll/win32/mshtml/htmlstyle.c
index e04b608c9fc..374d5bc396d 100644
--- a/reactos/dll/win32/mshtml/htmlstyle.c
+++ b/reactos/dll/win32/mshtml/htmlstyle.c
@@ -16,27 +16,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include
-#include
-#include
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-#include
-#include
-
#include "mshtml_private.h"
-#include "htmlstyle.h"
-
-#include
-
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
static const WCHAR attrBackground[] =
{'b','a','c','k','g','r','o','u','n','d',0};
diff --git a/reactos/dll/win32/mshtml/htmlstyle2.c b/reactos/dll/win32/mshtml/htmlstyle2.c
index 086a1e4020a..17b09c8f852 100644
--- a/reactos/dll/win32/mshtml/htmlstyle2.c
+++ b/reactos/dll/win32/mshtml/htmlstyle2.c
@@ -16,24 +16,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-#include
-
#include "mshtml_private.h"
-#include "htmlstyle.h"
-
-#include
-
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
static inline HTMLStyle *impl_from_IHTMLStyle2(IHTMLStyle2 *iface)
{
diff --git a/reactos/dll/win32/mshtml/htmlstyle3.c b/reactos/dll/win32/mshtml/htmlstyle3.c
index e9fb3ce3a51..5eacf7f3eb7 100644
--- a/reactos/dll/win32/mshtml/htmlstyle3.c
+++ b/reactos/dll/win32/mshtml/htmlstyle3.c
@@ -16,24 +16,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-#include
-
#include "mshtml_private.h"
-#include "htmlstyle.h"
-
-#include
-
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
static inline HTMLStyle *impl_from_IHTMLStyle3(IHTMLStyle3 *iface)
{
diff --git a/reactos/dll/win32/mshtml/htmlstyleelem.c b/reactos/dll/win32/mshtml/htmlstyleelem.c
index 3d8c74520db..69ade763df7 100644
--- a/reactos/dll/win32/mshtml/htmlstyleelem.c
+++ b/reactos/dll/win32/mshtml/htmlstyleelem.c
@@ -16,26 +16,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include
-#include
-
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-//#include "winreg.h"
-#include
-
-#include
-
#include "mshtml_private.h"
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
-
typedef struct {
HTMLElement element;
diff --git a/reactos/dll/win32/mshtml/htmlstylesheet.c b/reactos/dll/win32/mshtml/htmlstylesheet.c
index 8896ee8c8c7..4ade7c7a5bc 100644
--- a/reactos/dll/win32/mshtml/htmlstylesheet.c
+++ b/reactos/dll/win32/mshtml/htmlstylesheet.c
@@ -16,24 +16,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-#include
-
-#include
-
#include "mshtml_private.h"
-WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
-
struct HTMLStyleSheet {
DispatchEx dispex;
IHTMLStyleSheet IHTMLStyleSheet_iface;
diff --git a/reactos/dll/win32/mshtml/htmltable.c b/reactos/dll/win32/mshtml/htmltable.c
index 31b32c97a31..04bc2ab1542 100644
--- a/reactos/dll/win32/mshtml/htmltable.c
+++ b/reactos/dll/win32/mshtml/htmltable.c
@@ -16,25 +16,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-
-#include
-#include
-
-#define COBJMACROS
-
-#include
-#include
-//#include "winuser.h"
-#include