E
Esteban
Hello,
I've developed a COM add-in that works with OL 2003/07 in C# .Net 2.0.
When OL starts I need to retrieve the list of OL accounts available in the
current OL Profile. For each account, I need to obtain the associated
SMTP-format email address.
The code I have works well for POP, EXCHANGE, HTTP (hotmail), and IMAP
accounts. However, I found a MAPI type that I cannot resolve. This account
was created in OL when the user installed the "Google Apps Sync" add-in for
Outlook available thru their Google Apps Premier account
(https://tools.google.com/dlpage/gappssync). By the way, I say MAPI because
this is how Outlook displays it when the user opens the “Accounts Settingsâ€
dialog (OL07) and the account is described as Type “MAPIâ€.
The code I have scans the Profile details in the registry for the
CurrentUser hive. I’m adding some details here in case it helps (I can add
more if needed). First I get the Profile details from the corresponding entry
in this key:
Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging
Subsystem\Profiles
And then I get the related subkey/value
9375CFF0413111d3B88A00104B2A6676/{ED475418-B0D6-11D2-8C3B-00104B2A6676},
which gets me the final key where the details for the account are available
(typically “0000001†or something like that)
In this final account key I can access values like “Account Nameâ€, which
retrieves the correct information, but compared to POP/EX/IMAP I cannot find
a value that will get me the e-mail address. For example, for a POP or IMAP
account I can get the “Email†value (along with “POP3 User†or “IMAP Userâ€
correspondingly and other like that); for an EX account I get “Identity Eidâ€,
which gives me the Exchange id used later to retrieve the list of associated
SMTP e-mail addresses.
So, as I said, this works for all types of accounts except for this MAPI
account. Other than the “Account Name†value, none of the other values give
me something useful. Value names that I see in this type of account are “Mini
UIDâ€, “Service Nameâ€, and “Service UIDâ€, but I cannot make any sense of the
binary data stored in these values.
Any hints on how to obtain the associated SMTP-format e-mail address of this
MAPI account?
Thank you in advance
E
I've developed a COM add-in that works with OL 2003/07 in C# .Net 2.0.
When OL starts I need to retrieve the list of OL accounts available in the
current OL Profile. For each account, I need to obtain the associated
SMTP-format email address.
The code I have works well for POP, EXCHANGE, HTTP (hotmail), and IMAP
accounts. However, I found a MAPI type that I cannot resolve. This account
was created in OL when the user installed the "Google Apps Sync" add-in for
Outlook available thru their Google Apps Premier account
(https://tools.google.com/dlpage/gappssync). By the way, I say MAPI because
this is how Outlook displays it when the user opens the “Accounts Settingsâ€
dialog (OL07) and the account is described as Type “MAPIâ€.
The code I have scans the Profile details in the registry for the
CurrentUser hive. I’m adding some details here in case it helps (I can add
more if needed). First I get the Profile details from the corresponding entry
in this key:
Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging
Subsystem\Profiles
And then I get the related subkey/value
9375CFF0413111d3B88A00104B2A6676/{ED475418-B0D6-11D2-8C3B-00104B2A6676},
which gets me the final key where the details for the account are available
(typically “0000001†or something like that)
In this final account key I can access values like “Account Nameâ€, which
retrieves the correct information, but compared to POP/EX/IMAP I cannot find
a value that will get me the e-mail address. For example, for a POP or IMAP
account I can get the “Email†value (along with “POP3 User†or “IMAP Userâ€
correspondingly and other like that); for an EX account I get “Identity Eidâ€,
which gives me the Exchange id used later to retrieve the list of associated
SMTP e-mail addresses.
So, as I said, this works for all types of accounts except for this MAPI
account. Other than the “Account Name†value, none of the other values give
me something useful. Value names that I see in this type of account are “Mini
UIDâ€, “Service Nameâ€, and “Service UIDâ€, but I cannot make any sense of the
binary data stored in these values.
Any hints on how to obtain the associated SMTP-format e-mail address of this
MAPI account?
Thank you in advance
E