Searches a directory for a file whose name matches the specified file name on the destination site identified by this object. It examines subdirectory names as well as file names.
Syntax
HRESULT FindFirstFile( LPCWSTR wsSearchFile, LPWIN32_FIND_DATAW pFindFileData, LPHANDLE pSearchHandle );
Parameters
- wsSearchFile
- Address of a null-terminated string that contains the file name to find.
- pFindFileData
- Address of a WIN32_FIND_DATA structure that receives information about the file or subdirectory that has been found.
- pSearchHandle
- Address of a variable that receives a handle that can be used for subsequent calls to the FindNextFile and FindClose functions.
Return Value
Returns S_OK if successful, or an error code otherwise.