Eric Pouech : winhlp32: Added support for some keyword support in external DLL support ( RegisterRoutine parameters).

Alexandre Julliard julliard at winehq.org
Sat Feb 11 10:28:40 CST 2012


Module: wine
Branch: master
Commit: efc35078eae22f46578360b4235b443a13ec4a5d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=efc35078eae22f46578360b4235b443a13ec4a5d

Author: Eric Pouech <eric.pouech at orange.fr>
Date:   Fri Feb 10 21:38:03 2012 +0100

winhlp32: Added support for some keyword support in external DLL support (RegisterRoutine parameters).

---

 programs/winhlp32/macro.c |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/programs/winhlp32/macro.c b/programs/winhlp32/macro.c
index ea6ecbd..615b687 100644
--- a/programs/winhlp32/macro.c
+++ b/programs/winhlp32/macro.c
@@ -1029,6 +1029,32 @@ int MACRO_Lookup(const char* name, struct lexret* lr)
         return ret;
     if (MACRO_Loaded && (ret = MACRO_DoLookUp(MACRO_Loaded, name, lr, MACRO_NumLoaded)) != EMPTY)
         return ret;
+    if (!strcmp(name, "hwndApp"))
+    {
+        WINHELP_WINDOW* win;
+        lr->integer = 0;
+        for (win = Globals.win_list; win; win = win->next)
+        {
+            if (!strcmp(win->info->name, "main"))
+            {
+                lr->integer = (LONG_PTR)win->hMainWnd;
+                break;
+            }
+        }
+        return INTEGER;
+    }
+    if (!strcmp(name, "hwndContext"))
+    {
+        lr->integer = Globals.active_win ?
+            (LONG_PTR)Globals.active_win->hMainWnd : 0;
+        return INTEGER;
+    }
+    if (!strcmp(name, "qchPath") || !strcmp(name, "qError") || !strcmp(name, "lTopicNo") ||
+        !strcmp(name, "hfs") || !strcmp(name, "coForeground") || !strcmp(name, "coBackground"))
+    {
+        WINE_FIXME("keyword %s not substituted in macro parsing\n", name);
+        return EMPTY;
+    }
 
     lr->string = name;
     return IDENTIFIER;




More information about the wine-cvs mailing list