VirtualBox

Changeset 84548 in vbox for trunk/include/VBox/HostServices


Ignore:
Timestamp:
May 26, 2020 5:43:31 PM (5 years ago)
Author:
vboxsync
Message:

Guest Control: Implemented guest side support for gracefully rebooting / shutting down the guest. Untested. bugref:9320

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/HostServices/GuestControlSvc.h

    r84243 r84548  
    211211     */
    212212    HOST_MSG_PATH_USER_HOME,
     213    /**
     214     * Issues a shutdown / reboot of the guest OS.
     215     */
     216    HOST_MSG_SHUTDOWN,
    213217
    214218    /** Blow the type up to 32-bits. */
     
    248252        RT_CASE_RET_STR(HOST_MSG_PATH_USER_DOCUMENTS);
    249253        RT_CASE_RET_STR(HOST_MSG_PATH_USER_HOME);
     254        RT_CASE_RET_STR(HOST_MSG_SHUTDOWN);
    250255        RT_CASE_RET_STR(HOST_MSG_32BIT_HACK);
    251256    }
     
    699704 *  GUESTPROCESS_DEFAULT_CMD_LEN / GUESTPROCESS_DEFAULT_ARGS_LEN / GUESTPROCESS_DEFAULT_ENV_LEN (bytes, in total). */
    700705#define VBOX_GUESTCTRL_GF_0_PROCESS_DYNAMIC_SIZES   RT_BIT_64(2)
     706/** Supports shutting down / rebooting the guest. */
     707#define VBOX_GUESTCTRL_GF_0_SHUTDOWN                RT_BIT_64(3)
    701708/** Bit that must be set in the 2nd parameter, will be cleared if the host reponds
    702709 * correctly (old hosts might not). */
     
    873880    HGCMFunctionParameter context;
    874881} HGCMMsgPathUserHome;
     882
     883/**
     884 * Shuts down / reboots the guest.
     885 */
     886typedef struct HGCMMsgShutdown
     887{
     888    VBGLIOCHGCMCALL hdr;
     889    /** UInt32: Context ID. */
     890    HGCMFunctionParameter context;
     891    /** UInt32: Action flags. */
     892    HGCMFunctionParameter action;
     893} HGCMMsgShutdown;
    875894
    876895/**
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