~~Title: VFS_BeginOutOfOrder~~ VFS_BeginOutOfOrder && HANDLE && Return a handle representing the out-of-order operation. Opus passes it to [[vfs_getnextfile|VFS_GetNextFile]] and [[vfs_endoutoforder|VFS_EndOutOfOrder]]. If you do not return a valid handle, return one of the following: |VFSOOO_FAIL|The operation fails| |VFSOOO_FALLBACK|Opus falls back to older methods| && hVFSData && HANDLE && [in] The handle to the namespace instance data && lpFuncData && LPVFSFUNCDATA && [in] unused && uiOperation && UINT && [in] The type of operation: |VFSOOOP_OTHER|Other| |VFSOOOP_COPY|Copy| |VFSOOOP_MOVE|Move| && pOOOItems && LPVFSOUTOFORDERARRAY && [in,out] Points to a **VFSOUTOFORDERARRAY** structure listing the items involved in the operation |**Field**|**Type**|**Description**| |cbSize|UINT|Size of the structure| |pItems|OOOItem*|Array of items. Each **OOOItem** has a //pszFile// (**LPCWSTR**) and a //dwPrivate// (**DWORD_PTR**) member| |cItemCount|UINT|Number of items in the //pItems// array| |fReordered|BOOL|Set to **TRUE** if you have re-ordered the //pItems// array| |pszDest|LPCWSTR|Destination| The **VFS_BeginOutOfOrder** function is called to begin an out-of-order operation on a set of files. If the plugin wants or needs to, it can re-order the **OOOItem** array and set //fReordered// to **TRUE** to have Opus update its internal file order for the operation. You //must// make sure the //dwPrivate// values in the array are preserved. Re-ordering items this way works even if you return 0 from **VFS_BeginOutOfOrder**. If **VFS_BeginOutOfOrder** fails, there is nowhere to store an error code or message ([[vfs_getlasterror|VFS_GetLastError]] is not checked afterwards, and is never used for errors relating to the out-of-order functions). If you want to report a specific error code or message, return a "dummy" out-of-order object which reports the error the first time [[vfs_getnextfile|VFS_GetNextFile]] is called (following the rules about //lpszFilePath// and **VFSGNF_DataValid_FilePath**), and then fails with **ERROR_NO_MORE_FILES** on further calls. See also [[vfs_getnextfile|VFS_GetNextFile]], [[vfs_endoutoforder|VFS_EndOutOfOrder]] and the **VFSCAPABILITY_OUTOFORDER** capability flag. This function was added in Directory Opus 10 (**VFSPLUGINVERSION** 4).