VirtualBox

Changeset 75653 in vbox


Ignore:
Timestamp:
Nov 21, 2018 9:01:28 PM (6 years ago)
Author:
vboxsync
Message:

SharedFolders: Added SHFL_LIST_RESTART flag for implementing RestartScan on NT.

Location:
trunk
Files:
2 edited

Legend:

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

    r75549 r75653  
    14101410#define SHFL_LIST_NONE          0
    14111411#define SHFL_LIST_RETURN_ONE    1
     1412#define SHFL_LIST_RESTART       2
    14121413
    14131414/** Parameters structure. */
  • trunk/src/VBox/HostServices/SharedFolders/vbsf.cpp

    r75506 r75653  
    11781178
    11791179    Assert(*pIndex == 0);
    1180     hDir = pHandle->dir.Handle;
    11811180
    11821181    cbDirEntry = 4096;
     
    11951194    *pcFiles = 0;
    11961195
    1197     if (pPath)
     1196    if (!pPath)
     1197        hDir = pHandle->dir.Handle;
     1198    else
    11981199    {
    11991200        if (pHandle->dir.SearchHandle == 0)
     
    12201221            else
    12211222                goto end;
     1223            flags &= ~SHFL_LIST_RESTART;
    12221224        }
    12231225        Assert(pHandle->dir.SearchHandle);
    12241226        hDir = pHandle->dir.SearchHandle;
     1227    }
     1228
     1229    if (flags & SHFL_LIST_RESTART)
     1230    {
     1231        rc = RTDirRewind(hDir);
     1232        if (RT_FAILURE(rc))
     1233            goto end;
    12251234    }
    12261235
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