SDK Everything_SetRequestFlags()

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
jmi
Posts: 4
Joined: Sat Apr 01, 2017 9:32 pm

SDK Everything_SetRequestFlags()

Post by jmi »

Hi,

I'm using Everything64.dll from the latest SDK zip.

When I request only the filename and path, things work as expected.

Code: Select all

Everything_SetRequestFlags(EVERYTHING_REQUEST_FILE_NAME | EVERYTHING_REQUEST_PATH)
Everything_SetSearch(...)
Everything_QueryW(True)
Everything_GetResultFileNameW(...)
The file names retrieved are good (as are the paths if those are retrieved.)

But if I then add EVERYTHING_REQUEST_SIZE to the Everything_SetRequestFlags() call, leaving everything else exactly as before,

Code: Select all

Everything_SetRequestFlags(EVERYTHING_REQUEST_FILE_NAME | EVERYTHING_REQUEST_PATH | EVERYTHING_REQUEST_SIZE)
Everything_SetSearch(...)
Everything_QueryW(True)
Everything_GetResultFileNameW(...)
Then the file names retrieved are corrupt (but the paths and sizes are good if those are retrieved.)

It's possible I'm doing something wrong ...
void
Developer
Posts: 16751
Joined: Fri Oct 16, 2009 11:31 pm

Re: SDK Everything_SetRequestFlags()

Post by void »

Thanks for the bug report.

There is an issue with the SDK.

Everything_GetResultFileNameW is returning the wrong address for the filename. It should be returning a pointer to the filename text, instead it returns a pointer to a DWORD, which is the length of the text that follows the DWORD.

The fix can be found here:
http://www.voidtools.com/Everything-SDK.zip
jmi
Posts: 4
Joined: Sat Apr 01, 2017 9:32 pm

Re: SDK Everything_SetRequestFlags()

Post by jmi »

Works great now! Thanks for such a quick fix void! And thanks for this great tool in general!
Post Reply