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

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

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

Postby qishao » Thu Mar 31, 2016 2:09 am

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
Site Admin
Posts: 3295
Joined: Fri Oct 16, 2009 11:31 pm

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

Postby void » Thu Apr 07, 2016 8:35 am

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?

Postby qishao » Mon Apr 11, 2016 7:28 am

:) ,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)".


Return to “Development, plugins and third party software”