Read and write master categories list

M

MA

Hi,

I need to read the Outlook master categories and write an new entry to
the list. It appear the master categories stored in registry
(HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Categories).
Is this correct for the OL 2003 onwards? BTW, my solution will have
prerequisite to OL 2003.

How can I read and write the categories list. I am using the
redemption and can not see anything in there which simplify. Anyway so
far I have the following code but the value I get is decimal....

-----------------------------------
string categories = string.Empty;

RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft
\Office\11.0\Outlook\Categories", false);
if (key != null)
{
try
{
byte[] holder = (byte[])key.GetValue("MasterList");
for (int x = 0; x < holder.Length; x++)
{
categories = categories + holder[x].ToString();
}
}
finally
{
key.Close();
}
}

----------------------------------

Thanks in advance for your help.

Regards,
MA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top