Ian Walker
Posts: 10
Joined: 2012-06-21
|
Is there a way to detect when an addon is being disabled?
I ideally need to run some cleanup code when my addon is disabled (not uninstalled) by the user |
|
Sergey Grischenko
Add-in Express team
Posts: 7233
Joined: 2004-07-05
|
Hi Ian,
The add-on is disabled when the Flags value of the key below is 1, 64 or 320.
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Ext\Settings\<BHO Guid>\
e.g
if (dwFlag == 1 || dwFlag == 64 || dwFlag == 320)
{
// plugin is disabled
} |
|