[DllImport("rapi.dll", CharSet=CharSet.Unicode, SetLastError=true)]
internal static extern int CeFindAllFiles (string szPath, long  dwFlags,out long lpdwFoundCount, out CE_FIND_DATA[]  AllFilesInfo);
调用时:
 CE_FIND_DATA[] AllFilesInfo;
 long cou;
 string fileName =“\\”;CeFindAllFiles(fileName,CeFindAllFiles_FLAGS.FAF_NAME,out cou, out AllFilesInfo);
测试时,AllFilesInfo显示未定义,错误显示参数错误,请大家帮忙,急!