Is it possible to save a record in a Windows gadget in a file or other storage (database, etc.)?

I plan to create a simple gadget to create a TO DO list app. It is easy to practice and to learn about the Windows gadget . How to save values ​​in a database? As much as possible, I do not want the local http handler file to be a means of storing the value in a file or database.

Note . I mark this with html and javascript, since I know that it uses such.

+3
source share
1 answer

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

+3
source

Source: https://habr.com/ru/post/1697903/


All Articles