VirtualBox

Changeset 8402 in vbox for trunk/include


Ignore:
Timestamp:
Apr 26, 2008 5:13:38 AM (17 years ago)
Author:
vboxsync
Message:

Added %Rhrc, %Rhrf and %Rhra for formatting COM/XPCOM status codes. Added RTErrCOMGet() for looking up these status codes. Note that we're not yet generating the XPCOM database, only the win32/64 one.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/err.h

    r8391 r8402  
    263263 */
    264264RTDECL(PCRTWINERRMSG) RTErrWinGet(long rc);
    265 #endif /* RT_OS_WINDOWS */
     265
     266/** On windows COM errors are part of the Windows error database. */
     267typedef RTWINERRMSG RTCOMERRMSG;
     268
     269#else  /* !RT_OS_WINDOWS */
     270
     271/**
     272 * COM/XPCOM error code message.
     273 */
     274typedef struct RTCOMERRMSG
     275{
     276    /** Pointer to the full message string. */
     277    const char *pszMsgFull;
     278    /** Pointer to the define string. */
     279    const char *pszDefine;
     280    /** Error code number. */
     281    uint32_t    iCode;
     282} RTCOMERRMSG;
     283#endif /* !RT_OS_WINDOWS */
     284/** Pointer to a XPCOM/COM error code message. */
     285typedef RTCOMERRMSG *PRTCOMERRMSG;
     286/** Pointer to const a XPCOM/COM error code message. */
     287typedef const RTCOMERRMSG *PCRTCOMERRMSG;
     288
     289/**
     290 * Get the message structure corresponding to a given COM/XPCOM error code.
     291 *
     292 * @returns Pointer to read-only message description.
     293 * @param   rc      The status code.
     294 */
     295RTDECL(PCRTCOMERRMSG) RTErrCOMGet(uint32_t rc);
    266296
    267297#endif /* IN_RING3 */
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