Converting MasterList to string/text format

M

mounil

Hi all,
In Outlook 2002 , the Master Category List is stored in the registry(
HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Outlook\Categories) in Hex
format as opposed to a string format for earlier versions. I wanted to know
how can I convert the MasterList file to a text/string format. I need to do
this as I then need to get the individual categories in the list.
TIA
Mounil.
 
M

Michael Bauer

Hi Mounil,

this is a sample for converting the string:

Private Function IMainCat_ReadCategories() As String
On Error Resume Next
Dim ubnd As Long
Dim byBuffer() As Byte
Dim sRegValue As String

byBuffer = sRegValue

ubnd = UBound(byBuffer)
If ubnd > 1 Then
' Cut the last two characters
ReDim Preserve byBuffer(ubnd - 2)
End If
IMainCat_ReadCategories = byBuffer
End Function

Here sRegValue is empty, of course. It should contain the value, which
you´ve got from the Registry.
 

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