How to get Full_Path_File_Name_Ext of file under cursor?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
ovg
Posts: 294
Joined: Thu Oct 27, 2016 7:19 pm

How to get Full_Path_File_Name_Ext of file under cursor?

Post by ovg »

It is possible to get Full file name (drive:\Path\Filename.ext) of the file under cursor in search result window via IPC/DLL call?
Please advise me howto?
void
Developer
Posts: 15289
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to get Full_Path_File_Name_Ext of file under cursor?

Post by void »

Unfortunately, there's no call in the Everything IPC to do this.

The Result list in Everything is an emulated SysListView32.
You can send the result list a LVM_GETITEMTEXT message, however, you'll need to use VirtualAllocEx, ReadProcessMemory and WriteProcessMemory to allocate memory remotely.

Please see my testing source code for implementation:
http://www.voidtools.com/everything_listview_test.zip

Call LVM_HITTEST to get the index of the result under the mouse cursor.
Call LVM_GETITEMTEXT for the name and path part and combine the two for a full path and filename.
ovg
Posts: 294
Joined: Thu Oct 27, 2016 7:19 pm

Re: How to get Full_Path_File_Name_Ext of file under cursor?

Post by ovg »

2void
Ok. Thank you so much for reply and example. I'll try.
Post Reply