- add hh.exe
authorGed Murphy <gedmurphy@reactos.org>
Sat, 7 Apr 2007 15:24:45 +0000 (15:24 +0000)
committerGed Murphy <gedmurphy@reactos.org>
Sat, 7 Apr 2007 15:24:45 +0000 (15:24 +0000)
- not added to build as it useless until we get hhctrl.ocx done.

svn path=/trunk/; revision=26279

reactos/base/applications/hh/hh.ico [new file with mode: 0644]
reactos/base/applications/hh/hh.rbuild [new file with mode: 0644]
reactos/base/applications/hh/hh.rc [new file with mode: 0644]
reactos/base/applications/hh/main.c [new file with mode: 0644]

diff --git a/reactos/base/applications/hh/hh.ico b/reactos/base/applications/hh/hh.ico
new file mode 100644 (file)
index 0000000..700b58e
Binary files /dev/null and b/reactos/base/applications/hh/hh.ico differ
diff --git a/reactos/base/applications/hh/hh.rbuild b/reactos/base/applications/hh/hh.rbuild
new file mode 100644 (file)
index 0000000..768801c
--- /dev/null
@@ -0,0 +1,14 @@
+<?xml version="1.0"?>\r
+<rbuild xmlns:xi="http://www.w3.org/2001/XInclude">\r
+       <module name="hh" type="win32gui" installbase="system32" installname="hh.exe" unicode="no">\r
+               <include base="hh">.</include>          \r
+               <define name="__USE_W32API" />\r
+               <define name="_WIN32_IE">0x0600</define>\r
+               <define name="_WIN32_WINNT">0x0501</define>\r
+               <library>kernel32</library>\r
+               <library>user32</library>\r
+               <library>gdi32</library>\r
+               <file>main.c</file>\r
+               <file>hh.rc</file>\r
+       </module>\r
+</rbuild>
\ No newline at end of file
diff --git a/reactos/base/applications/hh/hh.rc b/reactos/base/applications/hh/hh.rc
new file mode 100644 (file)
index 0000000..9cd358c
--- /dev/null
@@ -0,0 +1,9 @@
+#include <windows.h>\r
+\r
+#define REACTOS_STR_FILE_DESCRIPTION   "ReactOS HTML Help Executable\0"\r
+#define REACTOS_STR_INTERNAL_NAME      "hh\0"\r
+#define REACTOS_STR_ORIGINAL_FILENAME  "hh.exe\0"\r
+#include <reactos/version.rc>\r
+\r
+2 ICON DISCARDABLE hh.ico\r
+\r
diff --git a/reactos/base/applications/hh/main.c b/reactos/base/applications/hh/main.c
new file mode 100644 (file)
index 0000000..ee3a8e0
--- /dev/null
@@ -0,0 +1,23 @@
+#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;
+    int ret = -1;
+
+    hModule = LoadLibraryA("hhctrl.ocx");
+    doWinMain = (DOWINMAIN*) GetProcAddress(hModule, "doWinMain");
+
+    ret = doWinMain(hInst, cmdline);
+
+    FreeLibrary(hModule);
+
+    return ret;
+}