Article View: borland.public.cppbuilder.nativeapi
Article #5961Re: Shell popup menu
From: qyte
Date: Wed, 22 Jun 2005 11:10
Date: Wed, 22 Jun 2005 11:10
20 lines
1949 bytes
1949 bytes
Remy Lebeau (TeamB) wrote: > The only way to do that is to actually create a blank menu, pass it to > Explorer to fill in, and then see what was actually put into it. You use > the IContextMenu interface for that. You have to first retreive the > IShellFolder interface for the folder/file's parent folder. You can use > SHGetDesktopFolder(), IShellFolder::ParseDisplayName(), and > IShellFolder::BindToObject() for that. Once you have the parent folder's > IShellFolder interface, you can then call IShellFolder::GetUIObjectOf() to > get the IContentMenu interface, and then finally call > IContentMenu::QueryContextMenu(). > > > Gambit i am trying to do what you replied here and the problem that i have is the following. I cannot seem to find what it is i have to pass where the REFIID riid parameter is required in two of the above functions. could you post a reply of some code? let's say for the folder "C:\\windows"?
Technical Details
Message-ID:
<42b9471a$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!solnet.ch!solnet.ch!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42b77365@newsgroups.borland.com> <42b781a4@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,49d4c9bc0c0cea4b X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Wed, 22 Jun 2005 14:10:10 +0300 From: qyte <gyte@vivodinet.gr> User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Shell popup menu References: <42b77365@newsgroups.borland.com> <42b781a4@newsgroups.borland.com> In-Reply-To: <42b781a4@newsgroups.borland.com> Content-Type: text/plain; charset=windows-1253; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 83.171.210.195 Message-ID: <42b9471a$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1119438618 83.171.210.195 (22 Jun 2005 04:10:18 -0700) Lines: 20 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!solnet.ch!solnet.ch!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail