Page 1 of 1

Registry Reader

Posted: March 12th, 2005, 12:54 pm
by AlexV
RegistryReader

This is a plugin to read values from the registry.

Only one function is provided.
The first parameter is the key name, for example: "HKEY_CURRENT_USER\Software\PopTray\Status", and the second parameter is the value name, for example: "MailCount". The second parameter can be blank to read the default value.

The return value is the registry value as read, or an error string.

Written in Visual C# Express 2005, so you will need the .net 2 runtimes installed.

The point behind this plugin, if you were wondering, is to check the status of emails in PopTray. I've writtin a RegistryWriter plugin to that which stores the most recent mail status in the registry for that one to pick up.

Posted: August 8th, 2005, 6:56 pm
by AlexV
Upgraded to version 2.

Some recent activity with learning how to use the WMPBlogger addin has led me to believe that this plugin could use some additional functionality. So here it is.

Function 1 remains unchanged, and returns the registry value requested.

Newly added are:

Function 2, returns 1 if the specified value exists, and 0 if it doesn't.

Function 3, returns 1 if the specified value has changed since last time it was checked, and 0 if it hasn't.

Hope you find it useful!

As it is drop-in compatible with the older version, you can download it from the same url: RegistryReader