|11 Apr 2009||#1|
| || |
How Do I Call Windows Search from Delphi Applications?
One of my favourite features of Windows Vista and Windows 7 is the Search Index, so much so, in fact, that I've written a tutorial on how to use it for the Vista Forums. The use of Windows Search has also become one of my most important file management tools, especially the Windows 7 implementation.
Some of the regulars of the Vista and 7 forums will be familiar with a utility I have written: Duplicate Picture Finder. As it stands, duplicates can be located either from a series of specified folders, or from a list of files that are dragged and dropped onto the utility. I'm currently working on some tweaks and modifications, and one of the features I'd like to add is the ability to integrate Windows Search when the program is used on Vista or Windows 7.
Take, for example, the following search query:
kind:picture AND ((tag:"Wallpapers" AND tag:"Source Images") AND ((width:1920 height:1200) OR (width:1920 height:1440)))
I am using Embarcadero Delphi 2009 for this project. If possible, I would like answers to the following:
1) What Windows API calls will I need to make to execute the search?
2) Will it be possible to have results returned within a TStringList object, or in a manner that makes it easy to convert to TStringList?
3) Furthermore, is anyone familiar with the Windows API that I can use to access and/or modify the metatags embedded within JPG files by Windows Explorer?
As mentioned earlier, I'm using Delphi for this project, so I'll need Object Pascal translations of whatever necessary API call need to be made in order to implement this functionality into Duplicate Picture Finder.
As for the Metatags problem, I've tried using the "Chilkat XMP" controls, except the only problem is those controls are ActiveX, and require installation in order to work. I'd really not do that, because it will destroy the portability of DPF. It can currently be run from network shares, CD/DVD discs or even Flash Memory Drives without requiring an "Install Phase", and runs.
|My System Specs|
|Similar help and support threads for2: How Do I Call Windows Search from Delphi Applications?|
|Problems with Delphi after upgrading from Windows XP to Windows 7.0||Software|
|Windows 7 search for files&folders...can i make it search like XP?||General Discussion|
|Need XP-style search program to replace the Windows Seven search||Software|
|Windows 7 search files and folders vs Outlook 2007 search||General Discussion|
|Windows 7 Pro 32bit "Search" - if you can call it that.||General Discussion|
|Windows 7x64 and Borland Delphi 7||Software|
|Borland Delphi 7||Software|
|Our Sites ||Site Links ||About Us ||Find Us |
© Designer Media Ltd
All times are GMT -5. The time now is 10:38 PM.