Question : Enable Mapi in Outlook Express 4.0 Programmatically

I am trying to set Outlook Express to be enabled as the default simple Mapi client by editing the registry and win.ini file.  I have found all the necessary registry keys and the entry in the win.ini file,  but for some reason it does not enable the simple mapi setting for outlook express.  Does anyone know what other changes are set in the system so that I can enable this from a Visual C or Visual Basic program so that every time the computer boots I can check to verify that Outlook Express 4.0 is still set to be the default simple mapi handler?  And If it isnt I need to know what to set to enable it.

Answer : Enable Mapi in Outlook Express 4.0 Programmatically

See this fixmapi MS TID:
http://support.microsoft.com/support/kb/articles/q228/4/57.asp

OE has to be REGISTERED as the default:
Run
C:\Program Files\Outlook Express\MSIMN.EXE" /REG


Add to this key for URL:mailto -
HKEY_Local_Machine_\Software\Clients\Mail\Outlook Express
Add a new key that says
DLL Path  "C:\Program Files\Outlook Express\Msimn.exe" /mailurl:%1

Other reg entries:

[HKEY_CLASSES_ROOT\mailto]
@="URL:MailTo Protocol"
"EditFlags"=hex:02,00,00,00
"URL Protocol"=""

[HKEY_CLASSES_ROOT\mailto\DefaultIcon]
@="C:\\PROGRAM FILES\\OUTLOOK EXPRESS\\MSIMN.EXE,-2"

[HKEY_CLASSES_ROOT\mailto\shell]

[HKEY_CLASSES_ROOT\mailto\shell\open]

[HKEY_CLASSES_ROOT\mailto\shell\open\command]
@="\"C:\\PROGRAM FILES\\OUTLOOK EXPRESS\\MSIMN.EXE\" /mailurl:%1"

[HKEY_CLASSES_ROOT\.MAPIMail]
@="CLSID\\{9E56BE60-C50F-11CF-9A2C-00A0C90A90CE}"

[HKEY_LOCAL_MACHINE\SOFTWARE\CLASSES\.MAPIMail]
@="CLSID\\{9E56BE60-C50F-11CF-9A2C-00A0C90A90CE}"

 

 
Random Solutions  
 
programming4us programming4us