VM_FS_HANDLE vm_fs_find_first( VMWSTR path_name, vm_fs_info_t* file_info );
VM_FS_HANDLE vm_fs_find_first( VMWSTR path_name, vm_fs_info_t* file_info );
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 |
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. |
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.
vmfs.h
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.