![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
I need to close outlook fro a spearate process or detect that it cannot be
closed. What I am proposing to do it open outlook and then quit. Check if there is any explorer or inspector [cannot close]. If none them delete any process outlook.exe there might be in the background. Do this sound sound? -- Philip Painter, HP |
Ads |
#2
|
|||
|
|||
![]()
If there are no Explorers or Inspectors then Outlook is either running with
no UI or the UI is closing down. You can call Application.Quit to get Outlook to close or you could even send a Windows message to Outlook to shut down but if any other code is running in the background that has Outlook references Outlook would still hang in the background. Forcing the various Outlook windows to close using Win32 API calls might not be such a great idea, it could corrupt things nicely. What are you trying to do and why? -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "PhilipPainter" wrote in message ... I need to close outlook fro a spearate process or detect that it cannot be closed. What I am proposing to do it open outlook and then quit. Check if there is any explorer or inspector [cannot close]. If none them delete any process outlook.exe there might be in the background. Do this sound sound? -- Philip Painter, HP |
#3
|
|||
|
|||
![]()
I'm trying to close outlook prior to running a tool EMWProf which updates
profiles. -- Philip Painter, HP "Ken Slovak - [MVP - Outlook]" wrote: If there are no Explorers or Inspectors then Outlook is either running with no UI or the UI is closing down. You can call Application.Quit to get Outlook to close or you could even send a Windows message to Outlook to shut down but if any other code is running in the background that has Outlook references Outlook would still hang in the background. Forcing the various Outlook windows to close using Win32 API calls might not be such a great idea, it could corrupt things nicely. What are you trying to do and why? -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "PhilipPainter" wrote in message ... I need to close outlook fro a spearate process or detect that it cannot be closed. What I am proposing to do it open outlook and then quit. Check if there is any explorer or inspector [cannot close]. If none them delete any process outlook.exe there might be in the background. Do this sound sound? -- Philip Painter, HP |
#4
|
|||
|
|||
![]()
Then checking for Explorers.Count and Inspectors.Count and issuing
Application.Quit is probably the best way to go. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "PhilipPainter" wrote in message ... I'm trying to close outlook prior to running a tool EMWProf which updates profiles. -- Philip Painter, HP |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Closing Outlook 2000 | JohnB | Outlook - General Queries | 4 | April 19th 06 06:27 PM |
outlook 2000 sp3 hangs up when closing | Bob J | Outlook - Installation | 2 | March 31st 06 11:50 PM |
Outlook.exe won't shut down when closing the application. | Ron S | Outlook - Installation | 1 | February 23rd 06 07:59 PM |
Closing Outlook 2003 | MCKSR | Outlook - General Queries | 0 | February 6th 06 09:35 PM |
Outlook Remains in TaskList after closing (with AddIn) | Jeff Simcock | Add-ins for Outlook | 2 | February 2nd 06 03:42 AM |