hi all,
I using the latest SDK to find the all files on disk.codes as bellow:
Everything_SetRegex(FALSE);
Everything_SetMatchPath(FALSE);
Everything_SetMatchCase(FALSE);
Everything_SetMatchWholeWord(FALSE);
Everything_SetMax(EVERYTHING_IPC_ALLRESULTS);
Everything_SetSearchW(L"");
DWORD i;
for(i=0;i<Everything_GetNumFileResults();i++)
{
wcout << Everything_GetResultFileNameW(i) << L"\n";
}
The result just show folders.so what should i do to set parameter for funtion Everything_SetSearchW?
how can i use evething SDK to find all files on disks?
Re: how can i use evething SDK to find all files on disks?
Please make sure you call Everything_Query after you have setup the search state.
Please use Everything_GetNumResults (instead of Everything_GetNumFileResults):
Please use Everything_GetNumResults (instead of Everything_GetNumFileResults):
Code: Select all
Everything_SetRegex(FALSE);
Everything_SetMatchPath(FALSE);
Everything_SetMatchCase(FALSE);
Everything_SetMatchWholeWord(FALSE);
Everything_SetMax(EVERYTHING_IPC_ALLRESULTS);
Everything_SetSearchW(L"");
Everything_Query(TRUE);
DWORD i;
for(i=0;i<Everything_GetNumResults();i++)
{
wcout << Everything_GetResultFileNameW(i) << L"\n";
}
Re: how can i use evething SDK to find all files on disks?
,Thanks very much,it's ok now.
but use "wcout <<szText << L"\n"<<endl". the results can't be displayed on the console.
Instead of using "wprintf(_T("%s\n"),strTemp)".
but use "wcout <<szText << L"\n"<<endl". the results can't be displayed on the console.
Instead of using "wprintf(_T("%s\n"),strTemp)".