VirtualBox

Ignore:
Timestamp:
Aug 27, 2010 7:08:38 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
65273
Message:

Initial commit of Guest Additions runlevels; this replaces the additionsActive flag to get more detailed information of the current Guest Additions state.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/GuestImpl.h

    r31745 r32020  
    7575    // IGuest properties
    7676    STDMETHOD(COMGETTER(OSTypeId)) (BSTR *aOSTypeId);
    77 #if 0
    78     /** @todo Will replace old AdditionsActive call. */
    79     STDMETHOD(COMGETTER(AdditionsActive)) (ULONG aLevel, BOOL *aAdditionsActive);
    80 #endif
    81     STDMETHOD(COMGETTER(AdditionsActive)) (BOOL *aAdditionsActive);
     77    STDMETHOD(COMGETTER(AdditionsRunLevel)) (ULONG *aRunLevel);
    8278    STDMETHOD(COMGETTER(AdditionsVersion)) (BSTR *aAdditionsVersion);
    8379    /** @todo Remove later by replacing it by AdditionsFeatureAvailable(). */
     
    9490
    9591    // IGuest methods
     92    STDMETHOD(GetAdditionsStatus)(ULONG aLevel, BOOL *aActive);
    9693    STDMETHOD(SetCredentials)(IN_BSTR aUserName, IN_BSTR aPassword,
    9794                              IN_BSTR aDomain, BOOL aAllowInteractiveLogon);
     
    163160# endif
    164161
     162    /**
     163     * Guest additions run level.
     164     */
     165    enum VBoxGuestAdditionsRunLevel
     166    {
     167        VBoxGuestAdditionsRunLevel_None     = 0,
     168        VBoxGuestAdditionsRunLevel_System   = 100,
     169        VBoxGuestAdditionsRunLevel_Userland = 200,
     170        VBoxGuestAdditionsRunLevel_Desktop  = 400,
     171        VBoxGuestAdditionsRunLevel_SizeHack = 0x7fffffff
     172    };
     173
    165174    struct Data
    166175    {
    167         Data() : mAdditionsActive (FALSE), mSupportsSeamless (FALSE),
     176        Data() : mAdditionsRunLevel (0), mSupportsSeamless (FALSE),
    168177                 mSupportsGraphics (FALSE) {}
    169178
    170         Bstr  mOSTypeId;
    171         BOOL  mAdditionsActive;
    172         Bstr  mAdditionsVersion;
    173         Bstr  mInterfaceVersion;
    174         BOOL  mSupportsSeamless;
    175         BOOL  mSupportsGraphics;
     179        Bstr     mOSTypeId;
     180        uint32_t mAdditionsRunLevel;
     181        Bstr     mAdditionsVersion;
     182        Bstr     mInterfaceVersion;
     183        BOOL     mSupportsSeamless;
     184        BOOL     mSupportsGraphics;
    176185    };
    177186
Note: See TracChangeset for help on using the changeset viewer.

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