Hi, how can i get the windows search history and use it in my program? For example i write ".doc" in windows search bar. Now i want in my program to find out from somewhere, that i searched for ".doc" in my system(not web). How can i do this?
A:
I don't know if there's an API for it, but if you do a Windows search for an unlikely string, say "zxcvbnm", then search the registry for it, then on XP you can see it under one of the folders in:
HKEY_CURRENT_USER\Software\Microsoft\Search\ACMru
along with the rest of your recent search strings. I imagine this registry location may change between Windows versions though.
If you're targetting Windows 7 then this MSDN article looks like a good starting point.
jon hanson
2010-06-28 10:27:48