VirtualBox

Changeset 35188 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Dec 16, 2010 3:13:07 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
69027
Message:

Use RTERRINFO in SUPLib for hardening APIs and such.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/sup.h

    r35152 r35188  
    894894 * @param   pszModule       The module name. Max 32 bytes.
    895895 * @param   ppvImageBase    Where to store the image address.
    896  * @param   pszErr          Where to return error message on failure.
    897  * @param   cbErr           The size of the error buffer.
    898  */
    899 SUPR3DECL(int) SUPR3LoadModule(const char *pszFilename, const char *pszModule,
    900                                void **ppvImageBase, char *pszErr, size_t cbErr);
     896 * @param   pErrInfo        Where to return extended error information.
     897 *                          Optional.
     898 */
     899SUPR3DECL(int) SUPR3LoadModule(const char *pszFilename, const char *pszModule, void **ppvImageBase, PRTERRINFO pErrInfo);
    901900
    902901/**
     
    990989 * @param   fInternal       Set this to @c true if this is an internal
    991990 *                          VirtualBox application.  Otherwise pass @c false.
    992  * @param   pszErr          Where to return error message on failure.
    993  * @param   cbErr           The size of the error buffer.
    994  */
    995 SUPR3DECL(int) SUPR3HardenedVerifySelf(const char *pszArgv0, bool fInternal, char *pszErr, size_t cbErr);
     991 * @param   pErrInfo        Where to return extended error information.
     992 */
     993SUPR3DECL(int) SUPR3HardenedVerifySelf(const char *pszArgv0, bool fInternal, PRTERRINFO pErrInfo);
    996994
    997995/**
     
    10101008 * @param   fCheckFiles     Whether to apply the same basic integrity check to
    10111009 *                          the files in the directory as the directory itself.
    1012  * @param   pszErr          Where to return error message on failure.
    1013  * @param   cbErr           The size of the error buffer.
    1014  */
    1015 SUPR3DECL(int) SUPR3HardenedVerifyDir(const char *pszDirPath, bool fRecursive, bool fCheckFiles, char *pszErr, size_t cbErr);
     1010 * @param   pErrInfo        Where to return extended error information.
     1011 *                          Optional.
     1012 */
     1013SUPR3DECL(int) SUPR3HardenedVerifyDir(const char *pszDirPath, bool fRecursive, bool fCheckFiles, PRTERRINFO pErrInfo);
    10161014
    10171015/**
     
    10251023 * @param   pszFilename     The filename of the plug-in module (nothing can be
    10261024 *                          omitted here).
    1027  * @param   pszErr          Where to return error message on failure.
    1028  * @param   cbErr           The size of the error buffer.
    1029  */
    1030 SUPR3DECL(int) SUPR3HardenedVerifyPlugIn(const char *pszFilename, char *pszErr, size_t cbErr);
     1025 * @param   pErrInfo        Where to return extended error information.
     1026 *                          Optional.
     1027 */
     1028SUPR3DECL(int) SUPR3HardenedVerifyPlugIn(const char *pszFilename, PRTERRINFO pErrInfo);
    10311029
    10321030/**
     
    10391037 * @param   phLdrMod        Where to store the handle to the loaded module.
    10401038 * @param   fFlags          See RTLDRFLAGS_.
    1041  * @param   pszError        Where to return error message on failure.
    1042  * @param   cbError         The size of the error buffer.
    1043  */
    1044 SUPR3DECL(int) SUPR3HardenedLdrLoad(const char *pszFilename, PRTLDRMOD phLdrMod, uint32_t fFlags, char *pszError, size_t cbError);
     1039 * @param   pErrInfo        Where to return extended error information.
     1040 *                          Optional.
     1041 */
     1042SUPR3DECL(int) SUPR3HardenedLdrLoad(const char *pszFilename, PRTLDRMOD phLdrMod, uint32_t fFlags, PRTERRINFO pErrInfo);
    10451043
    10461044/**
     
    10551053 * @param   phLdrMod        Where to store the handle to the loaded module.
    10561054 * @param   fFlags          See RTLDRFLAGS_*.
    1057  * @param   pszError        Where to return error message on failure.
    1058  * @param   cbError         The size of the error buffer.
    1059  */
    1060 SUPR3DECL(int) SUPR3HardenedLdrLoadAppPriv(const char *pszFilename, PRTLDRMOD phLdrMod, uint32_t fFlags, char *pszError, size_t cbError);
     1055 * @param   pErrInfo        Where to return extended error information.
     1056 *                          Optional.
     1057 */
     1058SUPR3DECL(int) SUPR3HardenedLdrLoadAppPriv(const char *pszFilename, PRTLDRMOD phLdrMod, uint32_t fFlags, PRTERRINFO pErrInfo);
    10611059
    10621060/**
     
    10701068 * @param   pszFilename     The full path to the module, with extension.
    10711069 * @param   phLdrMod        Where to store the handle to the loaded module.
    1072  * @param   pszErr          Where to return error message on failure.
    1073  * @param   cbErr           The size of the error buffer.
    1074  */
    1075 SUPR3DECL(int) SUPR3HardenedLdrLoadPlugIn(const char *pszFilename, PRTLDRMOD phLdrMod, char *pszErr, size_t cbErr);
     1070 * @param   pErrInfo        Where to return extended error information.
     1071 *                          Optional.
     1072 */
     1073SUPR3DECL(int) SUPR3HardenedLdrLoadPlugIn(const char *pszFilename, PRTLDRMOD phLdrMod, PRTERRINFO pErrInfo);
    10761074
    10771075/**
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette