CeFindNextFile (rapi)
Last changed: -217.109.85.156

.
Summary

C# Signature:

[DllImport("rapi.dll")]
public static extern bool CeFindNextFile(
    int handle,
    ref CE_FIND_DATA lpFindFileData);

User-Defined Types:

CE_FIND_DATA structure info at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceobjst/html/cerefWIN32_FIND_DATA.asp

Notes:

function info on msdn at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceactsy/html/cerefCeFindNextFileRAPI.asp

Tips & Tricks:

Please add some!

Sample Code:

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);
}

Alternative Managed API:

Documentation