Adding an item to the context menu of the Internet Explorer context menu

I am trying to add a new entry to the context menu of the Internet Explorer context menu. I understand that this can be achieved by creating an HTML file containing JavaScript, and then linking it to a location in the registry. I also read that you can also add HTML to the resource file and compile it into a DLL (see Microsoft KB: Adding Entries to the Standard Context Menu ). Here I began to run into problems.

Here is some information on what I have done so far.

  • I have the following javascript in a file C:\test.htm:
<script type="text/javascript">
    alert('Hello, world!');
</script>
  • I added a new value REG_SZ 'c:\test.htm'to the registry in the following place:
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt

IE, . , , . . script, DLL. , :

  • Visual ++ VS 2005 'IETest' c:\IETest
  • C:\test.htm app.rc . ID TEST
  • DLL
res://C:\IETest\debug\IETest.dll/TEST

IE , , . DLL , .

, - DLL. - ? DLL ?

.

+3
1

TEST.html? , IE , , , , , MS.dll (, res://c:\Windows\system32\Shdoclc.dll/navcancl.htm)

, , , 23.

ResourceHacker , : http://angusj.com/resourcehacker/

+2

Source: https://habr.com/ru/post/1707054/


All Articles