关于文件查找的函数findfirst(),该怎么处理

关于文件查找的函数findfirst()
findfirst()函数是dir.h里的吧,在.net2003的编译环境中没有dir.h啊。
还有什么方法可以查找文件?

------解决方案--------------------
FindFirstFile
------解决方案--------------------
用_findfirst,在 <io.h>
------解决方案--------------------
winbase.h

::FindFirstFile()
------解决方案--------------------
http://msdn2.microsoft.com/en-us/library/zyzxfzac(VS.71).aspx
这里有 _findfirst和说明,需要_findclose()

You must call _findclose after you are finished using either the _findfirst or _findnext function. This will free up resources used by these functions in your application.


_finddata_t是一个结构,用来接收返回的数据的。

_finddata_t structure includes the following elements:

unsigned attrib
File attribute.
time_t time_create
Time of file creation ( –1L for FAT file systems).
time_t time_access
Time of last file access (–1L for FAT file systems).
time_t time_write
Time of last write to file.
_fsize_t size
Length of file in bytes.
char name[_MAX_PATH]
Null-terminated name of matched file/directory, without the path.
In file systems that do not support the creation and last access times of a file, such as the FAT system, the time_create and time_access fields are always –1L.

_MAX_PATH is defined in STDLIB.H as 260 bytes.