VirtualBox

Changeset 106240 in vbox


Ignore:
Timestamp:
Oct 8, 2024 2:47:39 PM (7 weeks ago)
Author:
vboxsync
Message:

Additions/NT/Installer: Check that what installer selector is about to launch looks like an installer and is correctly signed with the build certificate. This needs more testing. bugref:10771

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/include/NoCrtOutput.h

    r106061 r106240  
    123123
    124124
     125DECLINLINE(void) ErrorMsgX64(uint64_t uValue)
     126{
     127    char szVal[128];
     128    RTStrFormatU64(szVal, sizeof(szVal), uValue, 16, 0, 0, 0);
     129    ErrorMsgStr(szVal);
     130}
     131
     132
    125133DECLINLINE(int) ErrorMsg(const char *pszMsg)
    126134{
     
    197205
    198206
     207DECLINLINE(int) ErrorMsgRcSU(int rcExit, const char *pszMsg1, uint64_t uValue)
     208{
     209    ErrorMsgBegin(pszMsg1);
     210    ErrorMsgU64(uValue);
     211    ErrorMsgEnd(NULL);
     212    return rcExit;
     213}
     214
     215
     216DECLINLINE(int) ErrorMsgRcSX(int rcExit, const char *pszMsg1, uint64_t uValue)
     217{
     218    ErrorMsgBegin(pszMsg1);
     219    ErrorMsgX64(uValue);
     220    ErrorMsgEnd(NULL);
     221    return rcExit;
     222}
     223
     224
    199225DECLINLINE(int) ErrorMsgRcSUS(int rcExit, const char *pszMsg1, uint64_t uValue, const char *pszMsg2)
    200226{
     
    202228    ErrorMsgU64(uValue);
    203229    ErrorMsgEnd(pszMsg2);
     230    return rcExit;
     231}
     232
     233
     234DECLINLINE(int) ErrorMsgRcSW(int rcExit, const char *pszMsg1, const wchar_t *pwszMsg2)
     235{
     236    ErrorMsgBegin(pszMsg1);
     237    ErrorMsgWStr(pwszMsg2);
     238    ErrorMsgEnd(NULL);
     239    return rcExit;
     240}
     241
     242
     243DECLINLINE(int) ErrorMsgRcSWS(int rcExit, const char *pszMsg1, const wchar_t *pwszMsg2, const char *pszMsg3)
     244{
     245    ErrorMsgBegin(pszMsg1);
     246    ErrorMsgWStr(pwszMsg2);
     247    ErrorMsgEnd(pszMsg3);
     248    return rcExit;
     249}
     250
     251
     252DECLINLINE(int) ErrorMsgRcSWSS(int rcExit, const char *pszMsg1, const wchar_t *pwszMsg2, const char *pszMsg3, const char *pszMsg4)
     253{
     254    ErrorMsgBegin(pszMsg1);
     255    ErrorMsgWStr(pwszMsg2);
     256    ErrorMsgStr(pszMsg3);
     257    ErrorMsgEnd(pszMsg4);
     258    return rcExit;
     259}
     260
     261
     262DECLINLINE(int) ErrorMsgRcSWSU(int rcExit, const char *pszMsg1, const wchar_t *pwszMsg2, const char *pszMsg3, uint64_t uValue4)
     263{
     264    ErrorMsgBegin(pszMsg1);
     265    ErrorMsgWStr(pwszMsg2);
     266    ErrorMsgStr(pszMsg3);
     267    ErrorMsgU64(uValue4);
     268    ErrorMsgEnd(NULL);
     269    return rcExit;
     270}
     271
     272
     273DECLINLINE(int) ErrorMsgRcSWSX(int rcExit, const char *pszMsg1, const wchar_t *pwszMsg2, const char *pszMsg3, uint64_t uValue4)
     274{
     275    ErrorMsgBegin(pszMsg1);
     276    ErrorMsgWStr(pwszMsg2);
     277    ErrorMsgStr(pszMsg3);
     278    ErrorMsgX64(uValue4);
     279    ErrorMsgEnd(NULL);
    204280    return rcExit;
    205281}
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