This plugin is a scriptable version of the old SDMailNotify plugin. For an
user perspective discussion please refer to the
Scriptable plugins section.
For a real sample you can import the widget MailCheck.exe into DesktopX Builder
and check how its script works with regards to plugin interoperability.
There are a few things to note while you look at the source code:
There is no configuration management. It is left to the actual script.
It uses the special SD_SCRIPTABLE_PLUGIN_EVENT message to fire script
events. This is supposed to solve threading issues as compared to actual
native event mechanisms. With this regard, DesktopX is serving as an event
proxy.
You should compile using the Debug or Release MinSize configuration.
There is a custom implementation of DllRegisterServer all scriptable
plugins should comply with. It is basically registering the plugin
information using HKEY_CURRENT_USER rather than HKEY_LOCAL_MACHINE. This
allows auto-setup when running a gadget under limited user privileges.