shell-extensions

Could a shell extension be causing my program to crash?

不羁岁月 提交于 2019-12-24 10:16:55
问题 My company builds an MFC application that runs on Windows XP. One of our customers has reported a crash in this application that occurs when it opens a Common File Dialog to allow the user to save a log file. We haven't observed this crash on any of our integration systems. The customer provided us with a crash dump which shows that the program is trying to read from some inaccessible memory at address 160b2d48. The address appears to be from the code section of the address space, as there

What is a reliable way to get a DLL to load when Windows Explorer loads?

冷暖自知 提交于 2019-12-24 02:13:57
问题 I am researching the development of an add-on for Windows Explorer that will add some enhancements to the WebDAV therein, and to that end I'm looking for a good, reliable way to force a DLL to be loaded with Windows Explorer in XP/Vista/Win7 32- and 64-bit OSes. I seem to recall that a BHO would be loaded by Windows Explorer in the same way that it is in IE, but my initial tests of this are negative on Vista 64. It's highly possible I'm just doing something wrong there and will look into that

.NET ShellExtension (Framework 4.5, Windows 8.1, SharpShell) not working

青春壹個敷衍的年華 提交于 2019-12-23 16:08:34
问题 I tried to implement a custom ShellExtension in Windows 8.1 . Found that really good SharpShell tutorial. [ComVisible(true)] [COMServerAssociation(AssociationType.AllFiles)] public class CountExtProvider : SharpContextMenu { protected override bool CanShowMenu() { // We will always show the menu. return true; } protected override ContextMenuStrip CreateMenu() { // Create the menu strip. var menu = new ContextMenuStrip(); // Create a 'count lines' item. var itemCountLines = new

Extend Windows explorer with BHO

泪湿孤枕 提交于 2019-12-23 11:44:11
问题 I am trying to extend whindows explorer (NOT IE) with a customized panel in C++, which should look like this: and here's a similar question I found (in C#) : Similar question The question is of C# and already got an answer. But I myself find the answer is a bit too brief for me to follow, here's what I got: I should implement a BHO object the BHO object should implemet IObjectWithSite and IDockingWindow In SetSite method, call QueryInterface to get the pointer of service provider, then call

Is it possible to inherit the default IShellFolder implementation?

旧巷老猫 提交于 2019-12-23 04:38:09
问题 I'm trying to implement a shell namespace extension, for the sole purpose of overriding the thumbnail handler ( IExtractImage ) in a specific folder. I want everything else to be the same as in a normal folder , and I'd rather not have to reimplement everything that is done in the default implementation of IShellFolder ... So, is it possible to inherit from this default implementation? If so, how? Using composition would also be an acceptable solution, but how can I get an instance of the

icon overlay handlers for namespace extension

南笙酒味 提交于 2019-12-23 04:06:39
问题 I am developing namespace extension which gives a virtual view of files on a server. In this view, I need to provide different states(in use, offline, out of sync, etc) of a file using overlay icons. I was read through article implementing overlay handler, and thought I will try to handle this in one of our overlay handlers, which implement IShellIconOverlayIdentifier interface. I see that IShellIconOverlayIdentifier::IsMemberOf(), and other functions are called only when I access files on

Close child dialogs when closing the parent

我只是一个虾纸丫 提交于 2019-12-19 18:39:11
问题 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

How to create an IconList property in the Windows Property System?

本小妞迷上赌 提交于 2019-12-18 16:58:53
问题 Currently, my property handler provides properties that can be displayed in Windows Explorer columns of type String . My goal is to extend the handler by a property of (display) type Icon , that can be added as a column to the details view of Windows Explorer. In this column, an icon should be displayed for each file item, e. g. the icon could represent a specific state of the file out of several possible states. However, I did not manage to assemble the necessary parts of creating a property

Tutorial for Windows Shell Extensions [closed]

旧时模样 提交于 2019-12-18 10:57:12
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I've been postponing this part of the project because I haven't found any particular helpful example/tutorial for these 2 aspects of

How to add a menu item (in right click menu) to explorer for all files (*.*)?

醉酒当歌 提交于 2019-12-18 09:25:53
问题 When Winrar installed, and user right click on a file, a new mune item exists: "Add to Archive..." How can do like this for my application? 回答1: This can be done by adding a shortcut (context) menu handler. A static handler by setting it up in registry Or, a fully featured dynamic handler, which is a COM object implementing necessary interfaces to advertise verbs and handle their invocations See also: Choosing a Static or Dynamic Shortcut Menu Method The Complete Idiot's Guide to Writing