VirtualBox

Ignore:
Timestamp:
Sep 5, 2017 11:33:54 AM (7 years ago)
Author:
vboxsync
Message:

Adding VBoxGuestCoreTypes.h for avoiding having to include VMMDev.h from VBoxGuestLib.h. Dropped a few unnecessary VMMDev.h includes here and there.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDisplay.cpp

    r68437 r68630  
    1515 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
    1616 */
     17
     18
     19/*********************************************************************************************************************************
     20*   Header Files                                                                                                                 *
     21*********************************************************************************************************************************/
    1722#include "VBoxTray.h"
    1823#include "VBoxHelpers.h"
    1924#include "VBoxSeamless.h"
    2025
    21 #include <malloc.h>
    22 
     26#include <iprt/alloca.h>
    2327#include <iprt/assert.h>
    2428#ifdef VBOX_WITH_WDDM
     
    2630#endif
    2731
    28 #ifdef DEBUG
     32#ifdef DEBUG /** @todo r=bird: these are all default values. sigh. */
    2933# define LOG_ENABLED
    3034# define LOG_GROUP LOG_GROUP_DEFAULT
    3135#endif
    3236#include <VBox/log.h>
    33 #include <VBox/VMMDev.h>
     37#include <VBox/VMMDev.h> /* for VMMDEV_EVENT_DISPLAY_CHANGE_REQUEST & VMMDEV_EVENT_MOUSE_CAPABILITIES_CHANGED */
    3438
    3539#include <VBoxDisplay.h>
     
    3741
    3842
    39 
     43/*********************************************************************************************************************************
     44*   Structures and Typedefs                                                                                                      *
     45*********************************************************************************************************************************/
    4046typedef struct _VBOXDISPLAYCONTEXT
    4147{
     
    5056} VBOXDISPLAYCONTEXT, *PVBOXDISPLAYCONTEXT;
    5157
    52 static VBOXDISPLAYCONTEXT g_Ctx = { 0 };
    53 
    5458typedef enum
    5559{
     
    5963} VBOXDISPLAY_DRIVER_TYPE;
    6064
    61 static VBOXDISPLAY_DRIVER_TYPE getVBoxDisplayDriverType (VBOXDISPLAYCONTEXT *pCtx);
     65
     66/*********************************************************************************************************************************
     67*   Global Variables                                                                                                             *
     68*********************************************************************************************************************************/
     69static VBOXDISPLAYCONTEXT g_Ctx = { 0 };
     70
     71
     72/*********************************************************************************************************************************
     73*   Internal Functions                                                                                                           *
     74*********************************************************************************************************************************/
     75static VBOXDISPLAY_DRIVER_TYPE getVBoxDisplayDriverType(VBOXDISPLAYCONTEXT *pCtx);
     76
    6277
    6378static DECLCALLBACK(int) VBoxDisplayInit(const PVBOXSERVICEENV pEnv, void **ppInstance)
     
    551566    LogFlowFunc(("ResizeDisplayDevice: Found total %d devices. err %d\n", NumDevices, GetLastError ()));
    552567
    553     DISPLAY_DEVICE *paDisplayDevices = (DISPLAY_DEVICE *)alloca (sizeof (DISPLAY_DEVICE) * NumDevices);
    554     DEVMODE *paDeviceModes = (DEVMODE *)alloca (sizeof (DEVMODE) * NumDevices);
     568    DISPLAY_DEVICE *paDisplayDevices = (DISPLAY_DEVICE *)alloca(sizeof (DISPLAY_DEVICE) * NumDevices);
     569    DEVMODE *paDeviceModes = (DEVMODE *)alloca(sizeof (DEVMODE) * NumDevices);
    555570    RECTL *paRects = (RECTL *)alloca (sizeof (RECTL) * NumDevices);
    556571    DWORD DevNum = 0;
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