Classic Shell http://classicshell.net/forum/ |
|
Windows Search question http://classicshell.net/forum/viewtopic.php?f=7&t=3011 |
Page 1 of 1 |
Author: | RandScullard [ Tue Jul 22, 2014 1:17 pm ] |
Post subject: | Windows Search question |
I love Classic Start Menu! I've tried pretty much every one of the "start menu replacers" out there, and it is by far the best. Since you've obviously found a clever solution to a tricky programming issue with Windows Search, maybe you can help me. My current project has a requirement to call the Windows Search API, and I'm having partial success searching the "God Mode" folder (shell:::{ED7BA470-8E54-465E-825C-99712043E01C}). I get a bunch of hits, but only a subset of the hits that Windows (and Classic Start Menu) gets for the same search term. For example, if I search for the word "allow", I only get: Block or allow third-party cookies Classic Start Menu gives me many more hits, in particular: Allow an app through Windows Firewall I can't even find these "missing" items when, instead of using Windows Search, I directly enumerate the items in the "God Mode" folder. I've been all over Google, but there isn't much information on this stuff. Can you give me a hint as to what API calls you're using to get the complete list? It would be a huge help. |
Author: | Ivo [ Tue Jul 22, 2014 9:15 pm ] |
Post subject: | Re: Windows Search question |
The start menu doesn't use Windows Search to search the god mode folder. It first collects all contents and then does its own string search. |
Author: | Gaurav [ Tue Jul 22, 2014 9:36 pm ] |
Post subject: | Re: Windows Search question |
Each item in the GodMode folder has a set of keywords associated with it. If you switch to Details view in the GodMode folder and enable the Keywords column, you will see them. Those are also searched. |
Author: | RandScullard [ Wed Jul 23, 2014 8:09 am ] |
Post subject: | Re: Windows Search question |
Thank you so much for the insight -- this is very helpful. I fixed the problem of the missing items from my enumeration of the God Mode folder (although I can't explain it). My test code was running in a console-mode application, and I tried moving it to a windowed application -- lo and behold, there are the missing items! This is extremely weird, but apparently a console-mode program can get different results when it enumerates a shell folder. |
Author: | Ivo [ Wed Jul 23, 2014 8:13 am ] |
Post subject: | Re: Windows Search question |
Maybe one was 32-bit and the other 64-bit? Or maybe you forgot to call CoInitialize, and when running as a windowed app some Windows component calls it for you? |
Author: | RandScullard [ Wed Jul 23, 2014 8:18 am ] |
Post subject: | Re: Windows Search question |
When either one is 32-bit, I get no results at all. So I know for sure they are both 64-bit. If CoInitialize wasn't called, I thought I wouldn't be able to call the shell COM objects at all. I was getting results, just not ALL the results. Anyway, this isn't something we need to figure out. The important thing is that it works! Thanks! |
Page 1 of 1 | All times are UTC - 8 hours [ DST ] |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |