{"id":3898,"date":"2016-10-21T22:14:06","date_gmt":"2016-10-21T22:14:06","guid":{"rendered":"http:\/\/www.hexacorn.com\/blog\/?p=3898"},"modified":"2016-10-21T22:26:55","modified_gmt":"2016-10-21T22:26:55","slug":"beyond-good-ol-run-key-part-48","status":"publish","type":"post","link":"https:\/\/www.hexacorn.com\/blog\/2016\/10\/21\/beyond-good-ol-run-key-part-48\/","title":{"rendered":"Beyond good ol\u2019 Run key, Part 48"},"content":{"rendered":"<p>I have just updated my <a href=\"https:\/\/www.hexacorn.com\/blog\/2014\/01\/10\/beyond-good-ol-run-key-part-6-2\/\">very old post<\/a> about HKLM\\SOFTWARE\\Microsoft\\VBA\\Monitors. I discovered its additional &#8216;properties&#8217; while looking at the VBE (Visual Basic Engine). On the way, I have also discovered that Visual Basic for Application&#8217;s old-school IDE allows programmers to create Add-ins. A quick googling followed and I immediately found a number of Addins for VBE &#8211; I was actually quite surprised that there are so many!<\/p>\n<p>Seriously, there is a huge interest in it! With all the C, Java, python programmers out there&#8230; it would seem that VBA is strong and here to stay&#8230;<\/p>\n<p>So, anyway&#8230; I didn&#8217;t spend much time on it as many programmers already provide good examples of <a href=\"https:\/\/www.google.com\/search?q=+VBE+Add-ins\">VBE Add-ins<\/a>, so I will just document where to find the possible persistence entries.<\/p>\n<p>The Add-ins are discovered by VBE by enumeration of the following key:<\/p>\n<ul>\n<li>HKCU\\Software\\Microsoft\\VBA\\VBE\\6.0\\Addins\\&lt;AddInName&gt;\\&#8230;<\/li>\n<\/ul>\n<p>Each Add-in has a dedicated subkey where it lists the properties:<\/p>\n<ul>\n<li>Description &#8211; Full description<\/li>\n<li>FriendlyName &#8211; Short name<\/li>\n<li>LoadBehavior &#8211; A DWORD that indicates whether the Add-in is loaded at startup (1), is currently unloaded (0)<\/li>\n<li>SatelliteDllName + SatelliteDllPath\u00a0 &#8211; references to localized information about the plug-in<\/li>\n<\/ul>\n<p>So, anyone wanting to load the VBE Add-in needs to set up the Registry key with the aforementioned values, and then create the appropriate entries under HKCR:<\/p>\n<ul>\n<li>HKCR\\&lt;AddInName&gt;\\Clsid = &lt;GUID&gt;<\/li>\n<li>HKCR\\CLSID\\{&lt;GUID&gt;}\\InprocServer32 = &#8230;<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>I have just updated my very old post about HKLM\\SOFTWARE\\Microsoft\\VBA\\Monitors. I discovered its additional &#8216;properties&#8217; while looking at the VBE (Visual Basic Engine). On the way, I have also discovered that Visual Basic for Application&#8217;s old-school IDE allows programmers to &hellip; <a href=\"https:\/\/www.hexacorn.com\/blog\/2016\/10\/21\/beyond-good-ol-run-key-part-48\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[13,35,19,46,9],"tags":[],"_links":{"self":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/3898"}],"collection":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/comments?post=3898"}],"version-history":[{"count":6,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/3898\/revisions"}],"predecessor-version":[{"id":3904,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/3898\/revisions\/3904"}],"wp:attachment":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/media?parent=3898"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/categories?post=3898"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/tags?post=3898"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}