VirtualBox

Changeset 6691 in vbox


Ignore:
Timestamp:
Jan 31, 2008 10:06:25 PM (17 years ago)
Author:
vboxsync
Message:

Corrected segment declaration and WEAK definition. Corrected VBoxHlp.h blocker.

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:$
    12;; @file
    23;
     
    910;
    1011; Copyright (C) 2008 innotek GmbH
    11 ; 
     12;
    1213; This file is part of VirtualBox Open Source Edition (OSE), as
    1314; available from http://www.virtualbox.org. This file is free software;
     
    1920;
    2021
    21 SEGMENT CODE32 CLASS=CODE USE32 FLAT PUBLIC
    2222
     23include "iprt/asmdefs.mac"
     24
     25
     26BEGINCODE
    2327extern _DLL_InitTerm
    2428
    25 ; Low-level DLL entry point
     29; Low-level DLL entry point - Forward to the C code.
    2630..start:
    2731    jmp _DLL_InitTerm
    2832
    29 ; Shut up emxomfld (?)
     33
     34; emxomfld may generate references to this for weak symbols. It is usually
     35; found in in libend.lib.
     36ABSOLUTE 0
    3037global WEAK$ZERO
    3138WEAK$ZERO:
     39
  • trunk/src/VBox/Frontends/VirtualBox/src/os2/VBoxHlp.cpp

    r6689 r6691  
     1/* $Id$ */
    12/** @file
    2  *
    33 * VBox frontends: Qt GUI ("VirtualBox"):
    44 * Implementation of OS/2-specific helpers that require to reside in a DLL
     
    3030 *  Undocumented PM hook that is called before the pressed key is checked
    3131 *  against the global accelerator table.
    32  * 
     32 *
    3333 *  Taken from the xWorkplace source code where it appears to come from the
    3434 *  ProgramCommander/2 source code. Thanks to Ulrich Moeller and Roman Stangl.
     
    3636#define HK_PREACCEL 17
    3737
    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). */
    3939
    4040/* Module handle of this DLL */
     
    4949ULONG gKbdHookMsg = 0;
    5050
    51 /** 
     51/**
    5252 *  Message Input hook used to monitor the system message queue.
    5353 *
     
    6868         * gKbdHookHwnd remains NULL. If it's the case while in this input
    6969         * 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
    7171         * called VBoxHlpInstallKbdHook(), we ignore the message. */
    7272        if (gKbdHookHwnd != NULLHANDLE)
     
    8181}
    8282
    83 /** 
     83/**
    8484 *  Installs a hook that will intercept all keyboard input (WM_CHAR) messages
    8585 *  and forward them to the given window handle using the given message
     
    9898 *  @note This function is not thread-safe and must be called only on the main
    9999 *  thread once per process.
    100  * 
     100 *
    101101 *  @param aHab     Window anchor block.
    102102 *  @param aHwnd    Top-level window handle to forward WM_CHAR messages to.
    103103 *  @param aMsg     Message ID to use when forwarding.
    104  * 
     104 *
    105105 *  @return @c true on success and @c false otherwise.  */
    106106VBOXHLPDECL(bool) VBoxHlpInstallKbdHook (HAB aHab, HWND aHwnd,
     
    124124}
    125125
    126 /** 
     126/**
    127127 *  Uninstalls the keyboard hook installed by VBoxHlpInstallKbdHook().
    128128 *  All arguments must match arguments passed to VBoxHlpInstallKbdHook(),
     
    152152}
    153153
    154 /** 
     154/**
    155155 *  DLL entry point.
    156  * 
     156 *
    157157 *  @param aHandle  DLL module handle.
    158158 *  @param aFlag    0 on initialization or 1 on termination.
    159  * 
     159 *
    160160 *  @return Non-zero for success or 0 for failure.
    161161 */
  • trunk/src/VBox/Frontends/VirtualBox/src/os2/VBoxHlp.h

    r6689 r6691  
    11/** @file
    2  *
    32 * VBox frontends: Qt GUI ("VirtualBox"):
    43 * Declaration of OS/2-specific helpers that require to reside in a DLL
     
    1716 */
    1817
    19 #ifndef __VBoxHlp_h__
    20 #define __VBoxHlp_h__
     18#ifndef ___VBoxHlp_h
     19#define ___VBoxHlp_h
    2120
    2221#include <iprt/cdefs.h>
     
    3433                                           unsigned long aMsg);
    3534
    36 #endif /* __VBoxHlp_h__ */
     35#endif /* !___VBoxHlp_h */
    3736
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette