VirtualBox

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


Ignore:
Timestamp:
May 25, 2010 1:30:45 PM (15 years ago)
Author:
vboxsync
Message:

Guest Control: More stable when client is crashing/aborting in an unusual way.

File:
1 edited

Legend:

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

    r29516 r29785  
    7474    /** Context ID to identify callback data. */
    7575    uint32_t u32ContextID;
    76 } HOSTCCALLBACKHEADER, *PHOSTCCALLBACKHEADER;
     76} CALLBACKHEADER, *PCALLBACKHEADER;
    7777
    7878/**
     
    8080 * notify the host of changes to properties.
    8181 */
    82 typedef struct _VBoxGuestCtrlExecCallbackData
     82typedef struct _VBoxGuestCtrlCallbackDataExecStatus
    8383{
    8484    /** Callback data header. */
    85     HOSTCCALLBACKHEADER hdr;
     85    CALLBACKHEADER hdr;
    8686    /** The process ID (PID). */
    8787    uint32_t u32PID;
     
    9494    /** Size of optional data buffer (not used atm). */
    9595    uint32_t cbData;
    96 } HOSTEXECCALLBACKDATA, *PHOSTEXECCALLBACKDATA;
    97 
    98 typedef struct _VBoxGuestCtrlExecOutCallbackData
     96} CALLBACKDATAEXECSTATUS, *PCALLBACKDATAEXECSTATUS;
     97
     98typedef struct _VBoxGuestCtrlCallbackDataExecOut
    9999{
    100100    /** Callback data header. */
    101     HOSTCCALLBACKHEADER hdr;
     101    CALLBACKHEADER hdr;
    102102    /** The process ID (PID). */
    103103    uint32_t u32PID;
     
    110110    /** Size of optional data buffer. */
    111111    uint32_t cbData;
    112 } HOSTEXECOUTCALLBACKDATA, *PHOSTEXECOUTCALLBACKDATA;
     112} CALLBACKDATAEXECOUT, *PCALLBACKDATAEXECOUT;
     113
     114typedef struct _VBoxGuestCtrlCallbackDataClientDisconnected
     115{
     116    /** Callback data header. */
     117    CALLBACKHEADER hdr;
     118} CALLBACKDATACLIENTDISCONNECTED, *PCALLBACKDATACLIENTDISCONNECTED;
    113119
    114120enum
    115121{
    116     /** Magic number for sanity checking the HOSTEXECCALLBACKDATA structure. */
    117     HOSTEXECCALLBACKDATAMAGIC = 0x26011982,
    118     /** Magic number for sanity checking the HOSTEXECOUTCALLBACKDATA structure. */
    119     HOSTEXECOUTCALLBACKDATAMAGIC = 0x11061949
     122    /** Magic number for sanity checking the CALLBACKDATACLIENTDISCONNECTED structure. */
     123    CALLBACKDATAMAGICCLIENTDISCONNECTED = 0x08041984,
     124    /** Magic number for sanity checking the CALLBACKDATAEXECSTATUS structure. */
     125    CALLBACKDATAMAGICEXECSTATUS = 0x26011982,
     126    /** Magic number for sanity checking the CALLBACKDATAEXECOUT structure. */
     127    CALLBACKDATAMAGICEXECOUT = 0x11061949
    120128};
    121129
     
    160168    GUEST_GET_HOST_MSG = 1,
    161169    /**
    162      * Guest asks the host to cancel all pending waits the guest waits on.
     170     * Guest asks the host to cancel all pending waits the guest itself waits on.
    163171     * This becomes necessary when the guest wants to quit but still waits for
    164172     * commands from the host.
    165173     */
    166174    GUEST_CANCEL_PENDING_WAITS = 2,
     175    /**
     176     * Guest disconnected (terminated normally or due to a crash HGCM
     177     * detected when calling service::clientDisconnect().
     178     */
     179    GUEST_DISCONNECTED = 3,
    167180    /**
    168181     * TODO
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