VirtualBox

Changeset 28233 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Apr 13, 2010 8:23:52 AM (15 years ago)
Author:
vboxsync
Message:

Guest Control: Update.

File:
1 edited

Legend:

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

    r28231 r28233  
    4848
    4949/**
     50 * Process status when executed in the guest.
     51 */
     52enum eProcessStatus
     53{
     54    /** Process is in an undefined state. */
     55    PROC_STS_UNDEFINED = 0,
     56    /** Process has been started. */
     57    PROC_STS_STARTED = 1,
     58    /** Process terminated normally. */
     59    PROC_STS_TEN = 2,
     60    /** Process terminated via signal. */
     61    PROC_STS_TES = 3,
     62    /** Process terminated abnormally. */
     63    PROC_STS_TEA = 4,
     64    /** Process timed out and was killed. */
     65    PROC_STS_TOK = 5,
     66    /** Process timed out and was not killed successfully. */
     67    PROC_STS_TOA = 6,
     68    /** @todo */
     69    PROC_STS_DWN = 7
     70};
     71
     72/**
    5073 * Data structure to pass to the service extension callback.  We use this to
    5174 * notify the host of changes to properties.
    5275 */
    53 typedef struct _HOSTCALLBACKDATA
    54 {
    55     /** Magic number to identify the structure */
     76typedef struct _VBoxGuestCtrlExecCallbackData
     77{
     78    /** Magic number to identify the structure. */
    5679    uint32_t u32Magic;
     80    /** The process ID (PID). */
     81    uint32_t pid;
     82    /* The process status. */
     83    uint32_t status;   
     84    /** Optional flags (not used atm). */
     85    uint32_t flags;
     86    /** Optional data buffer (not used atm). */
     87    void *pvData;
     88    /** Size of optional data buffer (not used atm). */
     89    uint32_t cbData;
    5790   
    58 } HOSTCALLBACKDATA, *PHOSTCALLBACKDATA;
     91} HOSTEXECCALLBACKDATA, *PHOSTEXECCALLBACKDATA;
    5992
    6093enum
     
    6295    /** Magic number for sanity checking the HOSTCALLBACKDATA structure */
    6396    HOSTCALLBACKMAGIC = 0x26011982
    64 };
    65 
    66 /**
    67  * Process status when executed in the guest.
    68  */
    69 enum eProcessStatus
    70 {
    71     PROC_STATUS_STARTED = 1,
    72 
    73     PROC_STATUS_TERMINATED = 2
    7497};
    7598
     
    189212{
    190213    VBoxGuestHGCMCallInfo hdr;
    191 
     214    /** The process ID (PID). */
    192215    HGCMFunctionParameter pid;
    193 
     216    /** The process status. */
    194217    HGCMFunctionParameter status;
    195 
     218    /** Optional flags (based on status). */
    196219    HGCMFunctionParameter flags;
    197 
     220    /** Optional data buffer (not used atm). */
    198221    HGCMFunctionParameter data;
    199222
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