flat assembler
Message board for the users of flat assembler.

Index > Windows > How to integrate with the Windows Shell?

Author
Thread Post new topic Reply to topic
OzzY



Joined: 19 Sep 2003
Posts: 1029
Location: Everywhere
OzzY 01 Aug 2013, 17:12
I want to create a menu, similar to the menu that WinRAR creates when you right click a folder.

What API do I need to use?
Post 01 Aug 2013, 17:12
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20416
Location: In your JS exploiting you and your system
revolution 01 Aug 2013, 22:16
You need to put values into the registry so I guess the API is the registry related functions.

I don't have a handy link available, but I would expect google can assist you to find the keys. But here is an example of one I use whenever I setup a new machine:
Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\Shell]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\Shell\Notepad]
@="Open with Notepad"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\Shell\Notepad\command]
@="C:\\WINDOWS\\notepad.exe %1"    
This adds notepad to the context menu.

And this one adds a cmd prompt for directories:
Code:
REGEDIT4
[HKEY_CLASSES_ROOT\Directory\shell\CmdHere]
@="CMD &Prompt Here"
[HKEY_CLASSES_ROOT\Directory\shell\CmdHere\command]
@="C:\\Windows\\System32\\cmd.exe /k cd \"/d %1\""

[HKEY_CLASSES_ROOT\Drive\shell\CmdHere]
@="CMD &Prompt Here"
[HKEY_CLASSES_ROOT\Drive\shell\CmdHere\command]
@="C:\\Windows\\System32\\cmd.exe /k cd \"/d %1\""    
Post 01 Aug 2013, 22:16
View user's profile Send private message Visit poster's website Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr 01 Aug 2013, 22:19
OzzY,

Perhaps shortcut menu handler is what you need.
Post 01 Aug 2013, 22:19
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.