View Single Post
  #1  
Old January 14th 06, 02:34 AM posted to microsoft.public.outlook.program_forms
sergeya
external usenet poster
 
Posts: 4
Default 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
Ads