Questions tagged [shell-extensions]

Shell Extensions are COM objects that extendeds functionality of Windows Explorer.

299 questions
42
votes
3 answers

Windows shell extension with C#

I was wanting to write a simple windows shell extension to add to the context menu, and C# is the language I most use these days. Is it a decent choice for a shell extension? Are the interfaces easy to get to with it? Is there additional overhead…
Pete McKinney
  • 1,211
  • 1
  • 11
  • 21
24
votes
2 answers

Windows explorer context menus with sub-menus using pywin32

I'm trying add some shell extensions using python with icons and a sub menu but I'm struggling to get much further than the demo in pywin32. I can't seem to come up with anything by searching google, either. I believe I need to register a com server…
GP89
  • 6,600
  • 4
  • 36
  • 64
20
votes
3 answers

How do I remove 'open with code' from my context menu for Visual Studio Code?

I have uninstalled Visual Studio Code, but the "open with code" option is still in my context menu when I right click a folder. If I install VS Code again, it will keep the old option and adds a second entry which opens VS code.
CVasquezG
  • 447
  • 1
  • 4
  • 12
18
votes
1 answer

How to write a shell extension in C++?

This seemed like a common question but after doing some searching, I wasn't really able to find my answers. There is an article on this here: http://www.codeproject.com/KB/shell/shellextguide1.aspx But it's for a very old version of Visual Studio.…
void.pointer
  • 24,859
  • 31
  • 132
  • 243
16
votes
2 answers

Display custom header or column in Windows Explorer

My app adds some custom metadata to files. I want to display it in Windows Explorer like this: or this: Is there a way to do this in .NET?
Elmo
  • 6,409
  • 16
  • 72
  • 140
14
votes
4 answers

Making a Windows shell extension in Visual Studio 2010

I'm trying to create an absurdly simple shell extension in C++ using Visual Studio 2010, but I can't even seem to get the examples out there to work as a starting point. I'm using Windows 7 x64. I've tried this Visual Studio template, but once I get…
joshcomley
  • 28,099
  • 24
  • 107
  • 147
13
votes
5 answers

Debugging shell extension in Windows 7

I'm trying to debug shell extension (IContextMenu) in Windows 7 with Visual C++ 2008. I have set DesktopProcess=1 in the registry and set host app to explorer.exe. But when I start the debugger, it launches explorer.exe and then detaches from the…
CodeSnake
  • 143
  • 2
  • 8
11
votes
3 answers

property sheet handlers on Windows 10

I have developed a custom property sheet handler that works fine on Windows 7 and Windows 8. On Windows 10, it is not loaded. It appear there were changes in the registration of shell extensions in Windows 10, though I haven't tracked down the…
Mike
  • 1,031
  • 14
  • 36
10
votes
0 answers

How Microsoft Implemented shell extensions for upcoming OneDrive On-Demand features?

Within the upcoming (currently insider) version of OneDrive client - On-Demand feature Microsoft introduced some new shell / namespace extensions. There is additional column showing file availability status, and text within the status bar. Did…
9
votes
1 answer

Adding a tab to default Properties' window of image files

I want to add a tab to Properties dialog of image files in Windows 7. I have many family images and I'd like see the details of each images with a tab in window's properties. Details like 'Camera Model', 'Date Taken' and so on in Persian date. How…
Mohammad Dayyan
  • 21,578
  • 41
  • 164
  • 232
9
votes
5 answers

"Build" item in Windows Explorer's context menu of a VS solution file?

I wonder why this is not integrated by default. I'd like to have an item in Windows Explorer's file context menu of a VS solution file to build it. Is there a tool for this? Or do I have to create this myself?
mafu
  • 31,798
  • 42
  • 154
  • 247
9
votes
2 answers

Signing an F# Assembly (Strong name component)

I found this article on CodeProject: http://www.codeproject.com/Articles/512956/NET-Shell-Extensions-Shell-Context-Menus and thought it would be nice to give it a try, but in F#. So I came up with the following code: open System open System.IO open…
LA.27
  • 1,888
  • 19
  • 35
7
votes
1 answer

Append to the default tooltip in a shell extension

I have a shell extension built using SharpShell. I am wondering if it is possible to append to the tooltip you see when you mouse over a file: I have read and tried to use a Shell Info Tip Handler, but the problem with this is that it overrides the…
Alexandru
  • 12,264
  • 17
  • 113
  • 208
7
votes
0 answers

White background on windows explorer context menu Icon

I have a COM shell extension that adds an item to the Windows Explorer context menu and use a BMP image with a transparent background as the icon. To set the image I use SetMenuItemBitmaps like so: [DllImport("user32.dll", ExactSpelling =…
7
votes
2 answers

How to unload C++ Shell Extension DLL properly

I have shell extension dll written in C++ and COM The dll is registered and loaded into memory. My upgrade setup program will do the following: Unregister the shell extension dll, kill the explorer.exe Copy the later version of the shell extension…
JChan
  • 1,411
  • 4
  • 24
  • 34
1
2 3
19 20