Changeset 6691 in vbox
- Timestamp:
- Jan 31, 2008 10:06:25 PM (17 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/os2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/os2/VBoxHlp.asm
r6689 r6691 1 ; $Id:$ 1 2 ;; @file 2 3 ; … … 9 10 ; 10 11 ; Copyright (C) 2008 innotek GmbH 11 ; 12 ; 12 13 ; This file is part of VirtualBox Open Source Edition (OSE), as 13 14 ; available from http://www.virtualbox.org. This file is free software; … … 19 20 ; 20 21 21 SEGMENT CODE32 CLASS=CODE USE32 FLAT PUBLIC22 22 23 include "iprt/asmdefs.mac" 24 25 26 BEGINCODE 23 27 extern _DLL_InitTerm 24 28 25 ; Low-level DLL entry point 29 ; Low-level DLL entry point - Forward to the C code. 26 30 ..start: 27 31 jmp _DLL_InitTerm 28 32 29 ; Shut up emxomfld (?) 33 34 ; emxomfld may generate references to this for weak symbols. It is usually 35 ; found in in libend.lib. 36 ABSOLUTE 0 30 37 global WEAK$ZERO 31 38 WEAK$ZERO: 39 -
trunk/src/VBox/Frontends/VirtualBox/src/os2/VBoxHlp.cpp
r6689 r6691 1 /* $Id$ */ 1 2 /** @file 2 *3 3 * VBox frontends: Qt GUI ("VirtualBox"): 4 4 * Implementation of OS/2-specific helpers that require to reside in a DLL … … 30 30 * Undocumented PM hook that is called before the pressed key is checked 31 31 * against the global accelerator table. 32 * 32 * 33 33 * Taken from the xWorkplace source code where it appears to come from the 34 34 * ProgramCommander/2 source code. Thanks to Ulrich Moeller and Roman Stangl. … … 36 36 #define HK_PREACCEL 17 37 37 38 /* NOTE: all global non-static DLL data is per-process (multiple, nonshared)*/38 /* NOTE: all global data is per-process (DATA32 is multiple, nonshared). */ 39 39 40 40 /* Module handle of this DLL */ … … 49 49 ULONG gKbdHookMsg = 0; 50 50 51 /** 51 /** 52 52 * Message Input hook used to monitor the system message queue. 53 53 * … … 68 68 * gKbdHookHwnd remains NULL. If it's the case while in this input 69 69 * hook, it means that the given foreign process is in foreground 70 * now. Since forwarding should work only for processes that 70 * now. Since forwarding should work only for processes that 71 71 * called VBoxHlpInstallKbdHook(), we ignore the message. */ 72 72 if (gKbdHookHwnd != NULLHANDLE) … … 81 81 } 82 82 83 /** 83 /** 84 84 * Installs a hook that will intercept all keyboard input (WM_CHAR) messages 85 85 * and forward them to the given window handle using the given message … … 98 98 * @note This function is not thread-safe and must be called only on the main 99 99 * thread once per process. 100 * 100 * 101 101 * @param aHab Window anchor block. 102 102 * @param aHwnd Top-level window handle to forward WM_CHAR messages to. 103 103 * @param aMsg Message ID to use when forwarding. 104 * 104 * 105 105 * @return @c true on success and @c false otherwise. */ 106 106 VBOXHLPDECL(bool) VBoxHlpInstallKbdHook (HAB aHab, HWND aHwnd, … … 124 124 } 125 125 126 /** 126 /** 127 127 * Uninstalls the keyboard hook installed by VBoxHlpInstallKbdHook(). 128 128 * All arguments must match arguments passed to VBoxHlpInstallKbdHook(), … … 152 152 } 153 153 154 /** 154 /** 155 155 * DLL entry point. 156 * 156 * 157 157 * @param aHandle DLL module handle. 158 158 * @param aFlag 0 on initialization or 1 on termination. 159 * 159 * 160 160 * @return Non-zero for success or 0 for failure. 161 161 */ -
trunk/src/VBox/Frontends/VirtualBox/src/os2/VBoxHlp.h
r6689 r6691 1 1 /** @file 2 *3 2 * VBox frontends: Qt GUI ("VirtualBox"): 4 3 * Declaration of OS/2-specific helpers that require to reside in a DLL … … 17 16 */ 18 17 19 #ifndef __ VBoxHlp_h__20 #define __ VBoxHlp_h__18 #ifndef ___VBoxHlp_h 19 #define ___VBoxHlp_h 21 20 22 21 #include <iprt/cdefs.h> … … 34 33 unsigned long aMsg); 35 34 36 #endif /* __VBoxHlp_h__*/35 #endif /* !___VBoxHlp_h */ 37 36
Note:
See TracChangeset
for help on using the changeset viewer.