2009년 11월 6일 금요일

FindFirstFile Function

FindFirstFile Function

 

특정 이름과 일치하는 서브디렉토리나 파일의 디렉토리를 검색한다.

검색을 하기 위해 추가적인 속성을 지정함으로써 FIndFiirstFileEx 함수를 사용한다.

 

Searches a directory for a file or subdirectory with a name that matches a specific name.

To specify additional attributes to use in a search, use the FindFirstFileEx function.

To perform this operation as a transacted operation, use the FindFirstFileTransacted function.

 

 

HANDLE WINAPI FindFirstFile(
  __in   LPCTSTR lpFileName,
  __out  LPWIN32_FIND_DATA lpFindFileData
);

 

Parameters

lpFileName

The directory or path, and the file name, which can include wildcard characters, for example, an asterisk (*) or a question mark (?).

If the string ends with a wildcard, period (.), or directory name, the user must have access to the root and all subdirectories on the path.

In the ANSI version of this function, the name is limited to MAX_PATH characters. To extend this limit to 32,767 widecharacters, call the Unicode version of the function and prepend "\\?\" to the path. For more information, see Naming a File.

lpFindFileData

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

댓글 없음:

댓글 쓰기