[DllImport("rapi.dll")]
public static extern int 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 = SMLib.CeFindFirstFile("\\temp\\*", ref findData);
if(hResult != -1)
{
int ret = CeFindNextFile(hResult, ref findData);
while(ret != 0 && ret != ERROR_NO_MORE_FILES)
{
ret = CeFindNextFile(hResult, ref findData);
}
CeFindClose(hResult);
}