windows-shell

How to create a right-click context shell shortcut “edit with Emacs”?

不打扰是莪最后的温柔 提交于 2019-12-31 08:13:17
问题 Notepad++ automatically adds a shell shortcut so that when you're in Windows Explorer, you can right-click on a file and select "edit with Notepad++". How can I do the same with emacs? I am using GNU Emacs 22.3 for Windows. 回答1: Here's what I have - similar to some other answer. Create a new text file somewhere called emacs-conextmenu.reg (or anything-you-want.reg) and paste the following in: Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\*\shell] [HKEY_CLASSES_ROOT\*\shell

How to code a new Windows Shell? [closed]

醉酒当歌 提交于 2019-12-28 12:43:11
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . How would I go about coding a new Windows Vista Shell? 回答1: Everything you need to do as shell has never been documented, so there are some issues with file change notifications etc. The basics are: SystemParametersInfo(SPI_SETMINIMIZEDMETRICS,...MINIMIZEDMETRICS) with

How to use TortoiseOverlays with my own handler

杀马特。学长 韩版系。学妹 提交于 2019-12-25 08:07:03
问题 tortoiseSVN has a shell hook that add overlay icons on files. They create a separate open source project to use it in their commons projects (tortoiseSvn,tortoiseGit,etc) i've download the installer .msi from google code that install the hooker handler i've got my own version of "IShellIconOverlayIdentifier::IsMemberOf" that use for the handlers how i grab all together ? Here is the only doc i found 回答1: Please note that the TortoiseOverlays handler does not reduce the work you have to do:

How do you handle rename operations when calling IContextMenu?

半腔热情 提交于 2019-12-25 04:09:15
问题 I'm calling IContextMenu::QueryContextMenu with CMF_CANRENAME and I'm having problems handling the rename operation when calling IContextMenu::InvokeCommand on Windows XP. I'm not a namespace extension and I'm not using DefView/IShellView but I am providing a site that implements IServiceProvider . On newer versions of Windows I'm queried for a service that implements IFolderView2 and the shell calls IFolderView2::DoRename and I can start the rename operation. On Windows XP however it queries

Restrict application to one instance per shell session on Windows

别等时光非礼了梦想. 提交于 2019-12-25 03:22:11
问题 There are a lot of solutions for restricting an application from running twice. Searching by process name, using a named mutex etc. But I all of these methods don't work if I want to restrict my application to the shell session. A user may have more than login session and shell on windows (right?)? If this is true I want to be able to run one instance of my application in every shell session but allow only one. Is there a way to get a shell identifier which could then be put into the mutex

How to set up Microsoft Edge file association to open .htm files?

孤人 提交于 2019-12-25 02:44:16
问题 In my software I'm using ShellExecuteEx to open a report that is presented as a local .htm file. At times on some end-user systems there's no default file association for the .htm files. To set such file association up on a pre-Windows 10 system I'd install the following registry keys to use IE: Key: HKEY_CURRENT_USER\Software\Classes\htm.file\Shell\open\Command REG_SZ name: "" REG_SZ value: "C:\Program Files (x86)\Internet Explorer\iexplore.exe" "%1" Key: HKEY_CURRENT_USER\Software\Classes\

Get explorer.exe to load my extension from startup

爱⌒轻易说出口 提交于 2019-12-25 01:27:29
问题 Context to prevent an XY Problem: (Because there very well might be a simplier solution) My goal is to track explorer.exe 's file movement when the user drags files around (as well as uses clipboard cut and copy stuff). I tried to solve this with a Windows Shell Extension, however the interfaces that I implemented never seemed to do trigger. I followed this guide from CodeProject which worked beautifully. However, when I implemented the IFileOperation interface, none of my functions were ever

How to delete ProgIDs from other user accounts when uninstalling from Windows?

大城市里の小女人 提交于 2019-12-24 10:34:34
问题 I've been investigating "how should a modern windows c++ application register its file types" with Windows (see C++: How do I correctly register and unregister file type associations for our application (programatically)). And having combed through the various MSDN articles on the subject, the summary appears to be as follows: The installer (elevated) should register the global ProgID HKLM\Software\Classes\my-app.my-doc[.version] (e.g. HKLM\Software\Classes\TextPad.text) The installer also

How does the Windows Shell resize icon overlays?

◇◆丶佛笑我妖孽 提交于 2019-12-24 07:36:14
问题 I've written a Shell Icon Overlay handler that contains a multi-image icon with 256, 48, 32 and 16 bit icons. The overlay bits are in the lower left corner, and respectively are 32, 15, 10 and 6 bits. In Windows Explorer, with the View set to Small, the icons are 16 bits and the overlay selected consumes 6 bits. Medium icons: 48 bits overlaid with 10. All as I expected. When the View is set to Large, a 96 bit icon is used, which is overlaid with 15 bits. Whether this is the 15 bits from the

Use system tray & icons in VBA (Access)

ぐ巨炮叔叔 提交于 2019-12-24 07:18:44
问题 I've found a few tutorials that explain how to use the windows API to get a custom icon in the system tray. These are all for Visual Basic, and they don't seem to be scaling to VBA well. I'm following this short tutorial: http://atchoo.org/vb/systray.php Basically, you have to set the hIcon value (a 'long' variable) but it does not work. I've tried to use the LoadPicture() function, which does not give me any errors, but also fails to add a new icon. I can't supply Me.Icon, nor can I set it