shell-extensions

How to add(enable) standard “Send To” context menu option in a namespace extension

拟墨画扇 提交于 2019-12-04 05:50:56
问题 I have a namespace extension, which provides a virtual view of files/folders in a server. In the IContextMenu::QueryContextMenu() I have added some of the custom menu items. I have also set couple of SGAOF flags in the IShellFolder::GetAttributesOf() to get the rename, delete, and properties, in the context menu. Is there any way I can get the " Send To " option in the context menu for items in my namespace extension? and How do I handle these commands once these are enabled?. Please advise.

Windows Registry file association menu

时间秒杀一切 提交于 2019-12-03 22:25:28
问题 I have recently(today) began meddeling with my registry from within Delphi. :) all is working well and my custom file type now opens with my program, but there are 2 issues i can't solve. 1) I wanted the option to "open with" from all file types so i added reg := TRegistry.Create; reg.RootKey := HKEY_CLASSES_ROOT; reg.LazyWrite := false; reg.OpenKey('*\OpenWithList\EncryptionSystem', true); reg.WriteString('','C:\Program Files\EncryptionSystem\EncryptionSystem.exe "%1"'); reg.CloseKey; reg

How to write a shell extension in C++?

故事扮演 提交于 2019-12-03 15:33:22
问题 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. I'm using VS 2008, so the instructions and interfaces don't seem to match what I'm seeing. I want to create a simple shell extension using C++ that creates a context menu for files with extension .GZ. When right clicking on these files, I should be

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

给你一囗甜甜゛ 提交于 2019-12-03 12:29:00
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? MSBuild Shell Extension have been there for years, http://msbuildshellex.codeplex.com/ But you might also try out my new project, http://msbuildlaunchpad.codeplex.com/releases/view/45368 It is quite easy to use. MSBuild Launch Pad http://i3.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=msbuildlaunchpad&DownloadId=122261 It's going to be fairly high maintenance, but not

Adding a tab to default Properties' window of image files

我的未来我决定 提交于 2019-12-03 06:19:07
问题 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 can this be done? 回答1: To do this you need to implement and install a "shell extension" (which basically are a bunch of COM interfaces)... Remark: If the system you are running on doesn't have .NET 4 then Microsoft recommended NOT to use .NET for

How to write a shell extension in C++?

一曲冷凌霜 提交于 2019-12-03 05:08:25
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. I'm using VS 2008, so the instructions and interfaces don't seem to match what I'm seeing. I want to create a simple shell extension using C++ that creates a context menu for files with extension .GZ. When right clicking on these files, I should be able to click my context menu item and have a callback in code to do some sort of operation on that

Debugging shell extension in Windows 7

放肆的年华 提交于 2019-12-03 02:16:26
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 process. DllMain of the shell extension isn't called. The same code with exactly the same settings launched in debugger without any problems in Windows XP + Visual C++ 2008. Any thoughts how to debug the shell extension in Win7? Try launching explorer and THEN attaching the debugger to it. I've found a nice workflow that I think is the fastest way to

Adding a tab to default Properties' window of image files

雨燕双飞 提交于 2019-12-02 19:42:55
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 can this be done? To do this you need to implement and install a "shell extension" (which basically are a bunch of COM interfaces)... Remark: If the system you are running on doesn't have .NET 4 then Microsoft recommended NOT to use .NET for this because of the inherent restriction with the older versions that one process can't run multiple framework

Close child dialogs when closing the parent

安稳与你 提交于 2019-12-01 17:54:04
I'm writing a Windows shell extension in C# using EZShellExtensions.NET . I contribute a context menu that shows dialogs. Suppose that I show an Explorer window (A). Then I use the context menu to show non modal window (B). In Windows XP and Windows Vista, when I close A, B is closed (I want this behavior). However, in Windows 7, when I close A, B is not closed but it doesn't respond to events. My questions are: Do you know why Windows 7 manage the showed form as a child form? Is there a way to maintain the message loop if I close A? EDIT : If I set A as owner of B, when I close A, B is also

Creating a submenu in the explorer-shell-extention?

寵の児 提交于 2019-12-01 17:16:15
I created a small script that changes a filename (replacing spaces with _ , etc.). I'm controlling this script with parameters. Now I'd like to include that into my explorer-shell-extention, so I tried to add the following registry entries: HKEY_CLASSES_ROOT\*\shell\edit filname method a\command HKEY_CLASSES_ROOT\*\shell\edit filname method b\command HKEY_CLASSES_ROOT\*\shell\edit filname method c\command and so on. It's working fine but I'd like to pack all those methods together into a submenu. Kinda like the "open with" option. Is that possible? You can just edit this to expand your needs.