Udostępnij za pośrednictwem


CAtlTransactionManager::FindFirstFile

Searches a directory for a file or subdirectory as a transacted operation.

inline HANDLE CAtlTransactionManager::FindFirstFile(
   LPCTSTR lpFileName,
   WIN32_FIND_DATA* pNextInfo
);

Parameters

  • lpFileName
    The directory or path, and the file name to search for. This parameter can include wildcard characters, such as an asterisk (*) or a question mark (?).

  • pNextInfo
    A pointer to the WIN32_FIND_DATA structure that receives information about a found file or subdirectory.

Return Value

If the function succeeds, the return value is a search handle used in a subsequent call to FindNextFile or FindClose. If the function fails or fails to locate files from the search string in the lpFileName parameter, the return value is INVALID_HANDLE_VALUE.

Remarks

This wrapper calls the FindFirstFileTransacted function.

Requirements

Header: atltransactionmanager.h

See Also

Reference

CAtlTransactionManager Class