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?
How to get Full_Path_File_Name_Ext of file under cursor?
Re: How to get Full_Path_File_Name_Ext of file under cursor?
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.
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.
Re: How to get Full_Path_File_Name_Ext of file under cursor?
2void
Ok. Thank you so much for reply and example. I'll try.
Ok. Thank you so much for reply and example. I'll try.