The CML/LitCrit application needs the identifier (storeID) of the Microsoft Exchange Server information store in order to open public folders in that information store. Then, the application can open a message in a public folder.
For Each objStore In objCDOSession.InfoStores
If objStore.ProviderName <> "Personal Folders" Then
lMask = objStore.Fields.Item(&H340D0003) 'PR_STORE_SUPPORT_MASK
If lMask And &H00004000 Then ' STORE_PUBLIC_FOLDERS
StoreID = objStore.ID
Exit For
End If
End If
Next
objCDOSession.Logoff