It is currently Tue Sep 22, 2020 8:12 pm

All times are UTC - 8 hours [ DST ]


Forum rules


Please, keep discussions on topic and in the right forum. The start menu topics go into the Classic Start Menu forum, etc. This makes it easier for people to locate topics they are looking for.
If you get a satisfactory response to your question, please mark the topic as "solved". Click the green √ button in the bottom-right of the post.



Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Windows Search question
PostPosted: Tue Jul 22, 2014 1:17 pm 
Offline

Joined: Tue Jul 22, 2014 12:38 pm
Posts: 3
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
Change security settings
Set up Family Safety for any user
Allow remote access to your computer
Allow Remote Assistance invitations to be sent from this computer

Classic Start Menu gives me many more hits, in particular:

Allow an app through Windows Firewall
Block or allow pop-ups

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.


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 22, 2014 9:15 pm 
Offline
Site Admin
User avatar

Joined: Wed Jan 02, 2013 11:38 pm
Posts: 5333
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.


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 22, 2014 9:36 pm 
Offline
User avatar

Joined: Thu Jan 03, 2013 12:38 am
Posts: 5354
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.

_________________
Links to some general topics:

Compare Start Menus

Read the Search box usage guide.

I am a Windows enthusiast and helped a little with Classic Shell's testing and usability/UX feedback.


Top
 Profile  
Reply with quote  
PostPosted: Wed Jul 23, 2014 8:09 am 
Offline

Joined: Tue Jul 22, 2014 12:38 pm
Posts: 3
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.


Top
 Profile  
Reply with quote  
PostPosted: Wed Jul 23, 2014 8:13 am 
Offline
Site Admin
User avatar

Joined: Wed Jan 02, 2013 11:38 pm
Posts: 5333
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?


Top
 Profile  
Reply with quote  
PostPosted: Wed Jul 23, 2014 8:18 am 
Offline

Joined: Tue Jul 22, 2014 12:38 pm
Posts: 3
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!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 50 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group, Almsamim WYSIWYG Classic Shell © 2010-2016, Ivo Beltchev.
All right reserved.