VirtualBox

Changeset 52403 in vbox for trunk/src/VBox/Runtime/include


Ignore:
Timestamp:
Aug 18, 2014 8:35:32 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
95565
Message:

SUP,IPRT: Extended RTLdrQueryPropEx with a pvBits parameter, RTLDRPROP_IMPORT_COUNT and RTLDRPROP_IMPORT_MODULE. Hook LdrLoadDll to validate DLLs before they get to NtCreateSection and the loader code/data can be messed up (windows 7 / 32-bit crash). Allow the kernel to buffer the log file, no real need that each write hits the disk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/include/internal/ldr.h

    r52213 r52403  
    359359     * @param   pMod            Pointer to the loader module structure.
    360360     * @param   enmLdrProp      The property to query (valid).
    361      * @param   pvBuf           Pointer to the return buffer (valid).
    362      * @param   cbBuf           The size of the return buffer (valid as per
     361     * @param   pvBits          Pointer to the bits returned by
     362     *                          RTLDROPS::pfnGetBits(), optional.
     363     * @param   pvBuf           Pointer to the input / output buffer. This is valid.
     364     *                          Normally only used for returning data, but in some
     365     *                          cases it also holds input.
     366     * @param   cbBuf           The size of the buffer (valid as per
    363367     *                          property).
    364368     * @param   pcbRet          The number of bytes actually returned.  If
     
    366370     *                          required buffer size.
    367371     */
    368     DECLCALLBACKMEMBER(int, pfnQueryProp)(PRTLDRMODINTERNAL pMod, RTLDRPROP enmProp, void *pvBuf, size_t cbBuf, size_t *pcbRet);
     372    DECLCALLBACKMEMBER(int, pfnQueryProp)(PRTLDRMODINTERNAL pMod, RTLDRPROP enmProp, void const *pvBits,
     373                                          void *pvBuf, size_t cbBuf, size_t *pcbRet);
    369374
    370375    /**
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