Page 1 of 1

how can i use evething SDK to find all files on disks?

Posted: Thu Mar 31, 2016 2:09 am
by qishao
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?

Re: how can i use evething SDK to find all files on disks?

Posted: Thu Apr 07, 2016 8:35 am
by void
Please make sure you call Everything_Query after you have setup the search state.

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?

Posted: Mon Apr 11, 2016 7:28 am
by qishao
:) ,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)".