[DllImport("rapi.dll")]
public static extern bool CeFindNextFile(
int handle,
ref CE_FIND_DATA lpFindFileData);
CE_FIND_DATA structure info at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceobjst/html/cerefWIN32_FIND_DATA.asp
function info on msdn at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceactsy/html/cerefCeFindNextFileRAPI.asp
Please add some!
short ERROR_NO_MORE_FILES = 18
CE_FIND_DATA findData = new CE_FIND_DATA();
int hResult = CeFindFirstFile("\\temp\\*", ref findData);
if(hResult != -1)
{
do
{
// Do whatever you want with findData
}while(CeFindNextFile(hResult, ref findData));
CeFindClose(hResult);
}