Syntax
VM_FS_HANDLE vm_fs_find_first(
    VMWSTR path_name, 
    vm_fs_info_t* file_info
);
ContentsIndex
PreviousUpNext
vm_fs_find_first
Syntax
VM_FS_HANDLE vm_fs_find_first(
    VMWSTR path_name, 
    vm_fs_info_t* file_info
);
Description

Finds the first file or folder under the specified path, and return a handle. This function supports the wild character (*) in the search pattern. The size and the full path of the first file or folder (no size if it is a folder) is returned through the out parameter of the vm_fs_info_t object. 

A handle of this find function is returned to the caller, which can be used for getting the next file or folder by vm_fs_find_next(). 

The caller of this function should call vm_fs_find_close() to release the resource after it is done with the handle.

Parameters
Parameters 
Description 
VMWSTR path_name 
[IN] The path, encoded in UCS-2. 
vm_fs_info_t* file_info 
[OUT] Contains the full path and size of the found file or folder. 
Returns

If a positive integer is returned, it is the handle for finding the next file or folder. 

If a negative integer is returned, then refer to VM_FS_RESULT for error code.

File

vmfs.h

Group
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.