hhctrl.ocx stub

Krzysztof Foltman kfoltman at portal.onet.pl
Wed Apr 21 04:37:38 CDT 2004


Hi,

This patch adds a dummy hhctrl.ocx for some programs that depend on it. 
It's just a stub, but they won't work without it (or hhupd.exe which 
AFAIK requires a Windows license).

Changelog:
- add dummy hhctrl.ocx with stubs of HtmlHelpA and HtmlHelpW, with 
proper ordinals (14 and 15)

Todo:
- add header file (this is just a stub so why bother?)
- implement the HTML Help functionality (requires a Web Browser, so I 
smell it won't be ready soon)

Notes:
- it creates the dlls/hhctrl directory as /tmp/null (so do mv /tmp/null 
dlls/hhctrl), I really didn't know how to do it better.
- it changes configure.ac so don't forget to run autoconf

Hope everything's OK, adding new dlls to Wine is rather complex for me.

Krzysztof
-------------- next part --------------
? dlls/comctl32-new
? dlls/hhctrl
Index: configure.ac
===================================================================
RCS file: /home/wine/wine/configure.ac,v
retrieving revision 1.268
diff -u -r1.268 configure.ac
--- configure.ac	16 Apr 2004 00:26:14 -0000	1.268
+++ configure.ac	21 Apr 2004 09:20:48 -0000
@@ -1545,6 +1545,7 @@
 dlls/gdi/tests/Makefile
 dlls/glu32/Makefile
 dlls/glut32/Makefile
+dlls/hhctrl/Makefile
 dlls/iccvid/Makefile
 dlls/icmp/Makefile
 dlls/ifsmgr.vxd/Makefile
Index: dlls/Makefile.in
===================================================================
RCS file: /home/wine/wine/dlls/Makefile.in,v
retrieving revision 1.216
diff -u -r1.216 Makefile.in
--- dlls/Makefile.in	16 Apr 2004 00:26:14 -0000	1.216
+++ dlls/Makefile.in	21 Apr 2004 09:20:49 -0000
@@ -53,6 +53,7 @@
 	dswave \
 	dxdiagn \
 	gdi \
+	hhctrl \
 	iccvid \
 	icmp \
 	ifsmgr.vxd \
@@ -269,6 +270,7 @@
 	dswave.dll.so \
 	dxdiagn.dll.so \
 	gdi32.dll.so \
+	hhctrl.ocx.so \
 	iccvid.dll.so \
 	icmp.dll.so \
 	ifsmgr.vxd.so \
@@ -529,6 +531,9 @@
 glut32.dll.so: glut32/glut32.dll.so
 	$(RM) $@ && $(LN_S) glut32/glut32.dll.so $@
 
+hhctrl.ocx.so: hhctrl/hhctrl.ocx.so
+	$(RM) $@ && $(LN_S) hhctrl/hhctrl.ocx.so $@
+
 iccvid.dll.so: iccvid/iccvid.dll.so
 	$(RM) $@ && $(LN_S) iccvid/iccvid.dll.so $@
 
@@ -1820,6 +1825,7 @@
 gdi/gdi32.dll.so: gdi
 glu32/glu32.dll.so: glu32
 glut32/glut32.dll.so: glut32
+hhctrl/hhctrl.ocx.so: hhctrl
 iccvid/iccvid.dll.so: iccvid
 icmp/icmp.dll.so: icmp
 ifsmgr.vxd/ifsmgr.vxd.so: ifsmgr.vxd
diff -Nu /tmp/null/.cvsignore dlls/hhctrl/.cvsignore
--- /tmp/null/.cvsignore	1970-01-01 01:00:00.000000000 +0100
+++ dlls/hhctrl/.cvsignore	2004-04-21 12:17:04.000000000 +0200
@@ -0,0 +1,2 @@
+Makefile
+hhctrl.ocx.dbg.c
diff -Nu /tmp/null/hhctrl.c dlls/hhctrl/hhctrl.c
--- /tmp/null/hhctrl.c	1970-01-01 01:00:00.000000000 +0100
+++ dlls/hhctrl/hhctrl.c	2004-04-21 11:44:34.000000000 +0200
@@ -0,0 +1,23 @@
+#include <stdarg.h>
+#include <string.h>
+#include "windef.h"
+#include "winbase.h"
+#include "wingdi.h"
+#include "winuser.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(htmlhelp);
+
+HWND WINAPI HtmlHelpA(HWND hwndCaller, LPCSTR pszFile,
+  UINT uCommand, DWORD dwData)
+{
+	FIXME("HtmlHelpA: stub\n");
+	return 0;
+}
+
+HWND WINAPI HtmlHelpW(HWND hwndCaller, LPCWSTR pszFile, 
+  UINT uCommand, DWORD dwData)
+{
+	FIXME("HtmlHelpW: stub\n");
+	return 0;
+}
diff -Nu /tmp/null/hhctrl.ocx.spec dlls/hhctrl/hhctrl.ocx.spec
--- /tmp/null/hhctrl.ocx.spec	1970-01-01 01:00:00.000000000 +0100
+++ dlls/hhctrl/hhctrl.ocx.spec	2004-04-21 11:26:54.000000000 +0200
@@ -0,0 +1,2 @@
+14 stdcall HtmlHelpA(ptr ptr long long)
+15 stdcall HtmlHelpW(ptr ptr long long)
diff -Nu /tmp/null/Makefile.in dlls/hhctrl/Makefile.in
--- /tmp/null/Makefile.in	1970-01-01 01:00:00.000000000 +0100
+++ dlls/hhctrl/Makefile.in	2004-04-20 22:46:08.000000000 +0200
@@ -0,0 +1,13 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR    = @srcdir@
+VPATH     = @srcdir@
+MODULE    = hhctrl.ocx
+IMPORTS   = shell32
+
+C_SRCS = hhctrl.c
+
+ at MAKE_DLL_RULES@
+
+### Dependencies:
+


More information about the wine-patches mailing list