VirtualBox

Changeset 84063 in vbox for trunk/include


Ignore:
Timestamp:
Apr 28, 2020 7:32:41 PM (5 years ago)
Author:
vboxsync
Message:

IPRT,++: New RTErrWin* API, data source unchanged. bugref:9726

File:
1 edited

Legend:

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

    r84054 r84063  
    315315
    316316
    317 #ifdef RT_OS_WINDOWS
     317# ifdef RT_OS_WINDOWS
    318318/**
    319319 * Windows error code message.
     
    333333typedef const RTWINERRMSG *PCRTWINERRMSG;
    334334
    335 /**
    336  * Get the message structure corresponding to a given Windows error code.
    337  *
    338  * @returns Pointer to read-only message description.
    339  * @param   rc      The status code.
    340  */
    341 RTDECL(PCRTWINERRMSG) RTErrWinGet(long rc);
    342 
    343 /** On windows COM errors are part of the Windows error database. */
    344 typedef RTWINERRMSG RTCOMERRMSG;
    345 
    346 #else  /* !RT_OS_WINDOWS */
     335RTDECL(bool)    RTErrWinIsKnown(long rc);
     336RTDECL(ssize_t) RTErrWinQueryDefine(long rc, char *pszBuf, size_t cbBuf, bool fFailIfUnknown);
     337
     338/** @name Error formatters used internally by RTStrFormat.
     339 * @internal
     340 * @{ */
     341RTDECL(size_t)  RTErrWinFormatDefine(long rc, PFNRTSTROUTPUT pfnOutput, void *pvArgOutput, char *pszTmp, size_t cbTmp);
     342RTDECL(size_t)  RTErrWinFormatMsg(   long rc, PFNRTSTROUTPUT pfnOutput, void *pvArgOutput, char *pszTmp, size_t cbTmp);
     343RTDECL(size_t)  RTErrWinFormatMsgAll(long rc, PFNRTSTROUTPUT pfnOutput, void *pvArgOutput, char *pszTmp, size_t cbTmp);
     344/** @} */
     345
     346# else  /* !RT_OS_WINDOWS */
    347347
    348348/**
     
    358358    uint32_t    iCode;
    359359} RTCOMERRMSG;
    360 #endif /* !RT_OS_WINDOWS */
    361360/** Pointer to a XPCOM/COM error code message. */
    362361typedef RTCOMERRMSG *PRTCOMERRMSG;
     
    371370 */
    372371RTDECL(PCRTCOMERRMSG) RTErrCOMGet(uint32_t rc);
     372
     373# endif /* !RT_OS_WINDOWS */
    373374
    374375#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