VirtualBox

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


Ignore:
Timestamp:
Nov 14, 2017 3:27:52 PM (7 years ago)
Author:
vboxsync
Message:

iprt: Started on RTDirRel for NT.

Location:
trunk/src/VBox/Runtime/include/internal
Files:
2 edited

Legend:

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

    r69674 r69691  
    159159 *
    160160 * @returns IPRT status code.
    161  * @param   pDir        The directory to open. The pszPath member contains the
    162  *                      path to the directory.
    163  * @param   pszPathBuf  Pointer to a RTPATH_MAX sized buffer containing pszPath.
    164  *                      Find-first style systems can use this to setup the
    165  *                      wildcard expression.
     161 * @param   pDir                The directory to open. The pszPath member contains the
     162 *                              path to the directory.
     163 * @param   pszPathBuf          Pointer to a RTPATH_MAX sized buffer containing
     164 *                              pszPath.  Find-first style systems can use this
     165 *                              to setup the wildcard expression.
     166 * @param   hRelativeDir        The directory @a pvNativeRelative is relative,
     167 *                              ~(uintptr_t)0 if absolute.
     168 * @param   pvNativeRelative    The native relative path.  NULL if absolute.
    166169 */
    167 int rtDirNativeOpen(PRTDIR pDir, char *pszPathBuf);
     170int rtDirNativeOpen(PRTDIR pDir, char *pszPathBuf, uintptr_t hRelativeDir, void *pvNativeRelative);
    168171
    169172/**
     
    175178size_t rtDirNativeGetStructSize(const char *pszPath);
    176179
     180
     181DECLHIDDEN(int) rtDirOpenRelative(PRTDIR *ppDir, const char *pszRelativeAndFilter, RTDIRFILTER enmFilter, uint32_t fFlags,
     182                                  uintptr_t hRelativeDir, void *pvNativeRelative);
     183
    177184#endif
  • trunk/src/VBox/Runtime/include/internal/file.h

    r69474 r69691  
    5656RTFILE rtFileGetStandard(RTHANDLESTD enmStdHandle);
    5757
     58#ifdef RT_OS_WINDOWS
     59/**
     60 * Helper for converting RTFILE_O_XXX to the various NtCreateFile flags.
     61 *
     62 * @returns IPRT status code
     63 * @param   fOpen               The RTFILE_O_XXX flags to convert.
     64 * @param   pfDesiredAccess     Where to return the desired access mask.
     65 * @param   pfObjAttribs        Where to return the NT object attributes.
     66 * @param   pfFileAttribs       Where to return the file attributes (create).
     67 * @param   pfShareAccess       Where to return the file sharing access mask.
     68 * @param   pfCreateDisposition Where to return the file create disposition.
     69 * @param   pfCreateOptions     Where to return the file open/create options.
     70 */
     71DECLHIDDEN(int) rtFileNtValidateAndConvertFlags(uint64_t fOpen, uint32_t *pfDesiredAccess, uint32_t *pfObjAttribs,
     72                                                uint32_t *pfFileAttribs, uint32_t *pfShareAccess, uint32_t *pfCreateDisposition,
     73                                                uint32_t *pfCreateOptions);
     74#endif
     75
    5876RT_C_DECLS_END
    5977
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