VirtualBox

Changeset 28950 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Apr 30, 2010 11:22:53 PM (15 years ago)
Author:
vboxsync
Message:

VBox/com/defs.h,VirtualBoxImpl.cpp: Implemented FAILED_DEAD_INTERFACE() for COM.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/com/defs.h

    r28945 r28950  
    8585
    8686/** Tests is a COM result code indicates that the process implementing the
    87  * interface is dead. */
    88 #define FAILED_DEAD_INTERFACE(rc) (false) /**< @todo */
     87 * interface is dead.
     88 *
     89 * COM status codes:
     90 *      0x800706ba - RPC_S_SERVER_UNAVAILABLE.  Killed before call was made.
     91 *      0x800706be - RPC_S_CALL_FAILED.         Killed after call was made.
     92 *      0x800706bf - RPC_S_CALL_FAILED_DNE.     Not observed, but should be matter of timing.
     93 */
     94#define FAILED_DEAD_INTERFACE(rc) \
     95    (   (rc) == HRESULT_FROM_WIN32(RPC_S_SERVER_UNAVAILABLE) \
     96     || (rc) == HRESULT_FROM_WIN32(RPC_S_CALL_FAILED) \
     97     || (rc) == HRESULT_FROM_WIN32(RPC_S_CALL_FAILED_DNE) \
     98    )
    8999
    90100/** Immutable BSTR string */
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