After installation, gadgets are launched with all the permissions of a registered user. Therefore, you must have access to the local file system and create COM objects, such as ADO, to connect to the database.
In this section, the gadget settings saver preservation team command allows gadgets to save their settings between removal and reinstallation in the sidebar. It uses Scripting.FileSystemObjectto write settings to a file:
http://channel9.msdn.com/playground/Sandbox/231595/
It is also useful to read to understand the security of the gadget:
http://msdn.microsoft.com/en-us/library/aa965881(VS.85).aspx
source
share