Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook - Using Forms (http://www.outlookbanter.com/outlook-using-forms/)
-   -   Microsoft security update MS06-003 breaks Outlook 2003 (http://www.outlookbanter.com/outlook-using-forms/5448-microsoft-security-update-ms06-003-a.html)

sergeya January 14th 06 02:34 AM

Microsoft security update MS06-003 breaks Outlook 2003
 
Latest security patch breaks Outlook logic, some Outlook Addins that use that
logic will cause Outlook to crash

After update is applied, Outlook build number changes to (11.8002.6568) SP2

The following combination of custom template use and VBA script kills Oulook:

1, create custom template from a regular Outlook email message and save it
as mailtemplate.oft in some folder
2. launch VBA editor via Alt-F11
3. Paste contetnts of the script below into VBA editor
4. change path to mailtemplate.oft to point to the saved template
5. place cursor on the first line and run the script via F5 or F8
6. Outlook crashes

---
Script:
-----
Sub CrashOutlook()
Application.GetNamespace("MAPI").GetDefaultFolder (olFolderDrafts)

Dim item As MailItem
Set item = Application.CreateItemFromTemplate("C:\mytemplate. oft",
Application.session.GetDefaultFolder(olFolderDraft s))
Dim itemDescription As FormDescription
Set itemDescription = item.FormDescription
itemDescription.Name = "My Message"
itemDescription.PublishForm (olPersonalRegistry)

' the following call will cause Outlook crash
Application.GetNamespace("MAPI").GetDefaultFolder (olFolderDrafts)
End Sub
--
- Sergey Arutiunov


All times are GMT +1. The time now is 01:23 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com