VirtualBox

Changeset 64640 in vbox for trunk


Ignore:
Timestamp:
Nov 10, 2016 3:27:09 PM (8 years ago)
Author:
vboxsync
Message:

IPRT: Implemented native NT version of RTPathQueryInfoEx that provides INode number and link count.

Location:
trunk/src/VBox/Runtime
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/Makefile.kmk

    r64619 r64640  
    793793        r3/nt/pathint-nt.cpp \
    794794        r3/nt/RTFileQueryFsSizes-nt.cpp \
     795        r3/nt/RTPathQueryInfo-nt.cpp \
    795796        r3/nt/RTProcQueryParent-r3-nt.cpp \
    796797        r3/win/env-win.cpp \
  • trunk/src/VBox/Runtime/r3/nt/pathint-nt.cpp

    r62584 r64640  
    172172static int rtNtPathToNative(struct _UNICODE_STRING *pNtName, PHANDLE phRootDir, const char *pszPath)
    173173{
     174/** @todo This code sucks a bit performance wise, esp. calling
     175 *        generic RTPathAbs.  Too many buffers involved, I think. */
     176
    174177    /*
    175178     * Very simple conversion of a win32-like path into an NT path.
  • trunk/src/VBox/Runtime/r3/win/path-win.cpp

    r64620 r64640  
    248248
    249249
     250#if 0 /* use nt version of this */
     251
    250252RTR3DECL(int) RTPathQueryInfo(const char *pszPath, PRTFSOBJINFO pObjInfo, RTFSOBJATTRADD enmAdditionalAttribs)
    251253{
    252254    return RTPathQueryInfoEx(pszPath, pObjInfo, enmAdditionalAttribs, RTPATH_F_ON_LINK);
    253255}
     256#endif
     257#if 0
    254258
    255259
     
    409413    return VINF_SUCCESS;
    410414}
     415
     416#endif /* using NT version*/
    411417
    412418
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