Explorer Context Menu of a given file?

  • Thread starter Thread starter Martin Carpella
  • Start date Start date
M

Martin Carpella

Hi!

Can anybody give me a pointer if/how I could retrieve the Explorer
context menu of a given file in C#?

Thanks in advance,
Martin
 
Hello,
I assume by "retrieve" you want to customize the menu? This is considered a
Shell Extension...

Thank you for your response. I'm aware of shell extensions, and even of
the problems you refer to below (even if I disagree in some points, as
long as you prevent the extension from being injected into other
processes despite Explorer).

With retrieve I meant to display Explorer's context menu within my
Windows Forms application, where I display some files in a
ListView. What I'm trying to achieve is to get the context menu Explorer
would display for the given file and display this within the
application's context. I've read some examples how it can be done within
a ShellExtension written in C++, but I have no idea how/if it is
possible to do this outside a shell extension and from within managed
code.

Best regards,
Martin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top