Read and write master categories list

  • Thread starter Thread starter MA
  • Start date Start date
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
 
Back
Top