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

Plug-in and third party software discussion.
Post Reply
qishao
Posts: 2
Joined: Thu Mar 31, 2016 1:48 am

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

Post 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?
void
Developer
Posts: 16770
Joined: Fri Oct 16, 2009 11:31 pm

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

Post 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";
}
qishao
Posts: 2
Joined: Thu Mar 31, 2016 1:48 am

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

Post 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)".
Post Reply