Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I save a record in a Windows Gadget in a file or other storage (database, etc.)?

I'm planning to create a simple gadget to create a TO DO list application. This is just for practice and to explore Windows Gadget. How can I store the values in the database? As much as possible, I don't want to set up a local http handler file to be a means to store value to file or database.

Note: I tag this with html and javascript since I'm aware it uses such.

like image 753
OnesimusUnbound Avatar asked Dec 04 '25 20:12

OnesimusUnbound


1 Answers

Once installed, gadgets run with all the permissions of the logged in user. So you should be able to access the local file system and instantiate COM objects such as ADO to connect to a database.

The chap here wrote a gadget settings persistence manager to allow gadgets to save their settings between being uninstalled and re-installed in the sidebar. He uses the Scripting.FileSystemObject to write out settings to a file:

http://channel9.msdn.com/playground/Sandbox/231595/

This is also worthwhile reading to understand gadget security:

http://msdn.microsoft.com/en-us/library/aa965881(VS.85).aspx

like image 115
Kev Avatar answered Dec 06 '25 10:12

Kev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!