Added hh.exe

Jacek Caban jack at itma.pwr.wroc.pl
Tue Jul 12 09:49:03 CDT 2005


James Hawkins wrote me that he has done some
work with hhctrl.ocx and he wanted to have
hh.exe in CVS while he starts sending patches,
so here it is.

Changelog:
    Added hh.exe
-------------- next part --------------
Index: configure.ac
===================================================================
RCS file: /home/wine/wine/configure.ac,v
retrieving revision 1.372
diff -u -p -r1.372 configure.ac
--- configure.ac	10 Jul 2005 17:42:46 -0000	1.372
+++ configure.ac	12 Jul 2005 14:32:46 -0000
@@ -1738,6 +1738,7 @@ programs/clock/Makefile
 programs/cmdlgtst/Makefile
 programs/control/Makefile
 programs/expand/Makefile
+programs/hh/Makefile
 programs/msiexec/Makefile
 programs/notepad/Makefile
 programs/progman/Makefile
--- /dev/null	1970-01-01 01:00:00.000000000 +0100
+++ programs/hh/.cvsignore	2005-07-12 15:26:06.000000000 +0200
@@ -0,0 +1,2 @@
+Makefile
+hh.exe.dbg.c
--- /dev/null	1970-01-01 01:00:00.000000000 +0100
+++ programs/hh/Makefile.in	2005-07-12 14:36:31.000000000 +0200
@@ -0,0 +1,14 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR    = @srcdir@
+VPATH     = @srcdir@
+MODULE    = hh.exe
+APPMODE   = -mwindows
+IMPORTS   = kernel32
+
+C_SRCS = \
+	main.c
+
+ at MAKE_PROG_RULES@
+
+### Dependencies:
--- /dev/null	1970-01-01 01:00:00.000000000 +0100
+++ programs/hh/main.c	2005-07-12 14:35:49.000000000 +0200
@@ -0,0 +1,33 @@
+/*
+ * Copyright 2004 Jacek Caban
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+
+#include <windows.h>
+
+typedef int WINAPI DOWINMAIN(HMODULE hMod, LPSTR cmdline);
+
+int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR cmdline, int cmdshow)
+{
+
+    HMODULE hModule;
+    DOWINMAIN *doWinMain;
+
+    hModule = LoadLibrary("hhctrl.ocx");
+    doWinMain = GetProcAddress(hModule, "doWinMain");
+
+    return doWinMain(hInst, cmdline); 
+}


More information about the wine-patches mailing list