Otlk 2007 does not block when in "always prompt for..." mode

  • Thread starter Q2hyaXMgTWlsbGVy
  • Start date
Status
Not open for further replies.
Q

Q2hyaXMgTWlsbGVy

Hi, I asked a question last month

http://www.microsoft.com/communitie...&p=1&tid=4f505b6c-1e40-4ea1-aec5-d012d7240107

about how to get Outlook to prompt for a username and password when in

"Always Prompt for a username and password" mode in the security settings

dialog for an exchange account.

The workaround is to get it to force a send and recieve using the

Namespace.SyncObjects[n].Start()

My application is a seperate process and in outlook 2003, the authentication

dialog is presented and it is top-level above my window and it blocks

correctly, however in outlook 2007, the dialog box is displayed but beneath

my application (it can also dissapear after a brief period of time) and it

does not block.

Is there any way to force it to block and display at the top-level, perhaps

I can inform the application object of the windows handle I am using ??

Any further help would be greatly appreciated, Many thanks

Chris
 
That window isn't exposed to the object model, so you'd have to find out the

window caption and class using something like Spy++, and find the window

using a Win32 API call such as FindWindow() or FindWindowEx().

When you find the window you can call to make it the top most window, using

a call to something like SetWindowPos() with the hWndInsertAfter argument

set to HWND_TOPMOST.

That would make that window topmost of all windows on your desktop.

"Chris Miller" <ChrisMiller> wrote in message

news:13FBEEED-8073-40CA-8C35-8BBC55A86CA4@microsoft.com...
> Hi, I asked a question last month

> http://www.microsoft.com/communitie...&p=1&tid=4f505b6c-1e40-4ea1-aec5-d012d7240107

> about how to get Outlook to prompt for a username and password when in
> "Always Prompt for a username and password" mode in the security settings
> dialog for an exchange account.

> The workaround is to get it to force a send and recieve using the
> Namespace.SyncObjects[n].Start()

> My application is a seperate process and in outlook 2003, the
> authentication
> dialog is presented and it is top-level above my window and it blocks
> correctly, however in outlook 2007, the dialog box is displayed but
> beneath
> my application (it can also dissapear after a brief period of time) and it
> does not block.

> Is there any way to force it to block and display at the top-level,
> perhaps
> I can inform the application object of the windows handle I am using ??

> Any further help would be greatly appreciated, Many thanks

> Chris
 
OK, Thanks again Ken,

I feared that might be the case and will start looking into finding its

windows handle etc...
wrote:


> That window isn't exposed to the object model, so you'd have to find out the
> window caption and class using something like Spy++, and find the window
> using a Win32 API call such as FindWindow() or FindWindowEx().

> When you find the window you can call to make it the top most window, using
> a call to something like SetWindowPos() with the hWndInsertAfter argument
> set to HWND_TOPMOST.

> That would make that window topmost of all windows on your desktop.

> >

>

> "Chris Miller" <ChrisMiller> wrote in message
> news:13FBEEED-8073-40CA-8C35-8BBC55A86CA4@microsoft.com...
> > Hi, I asked a question last month
> > http://www.microsoft.com/communitie...&p=1&tid=4f505b6c-1e40-4ea1-aec5-d012d7240107
> > about how to get Outlook to prompt for a username and password when in
> > "Always Prompt for a username and password" mode in the security settings
> > dialog for an exchange account.
> > The workaround is to get it to force a send and recieve using the
> > Namespace.SyncObjects[n].Start()
> > My application is a seperate process and in outlook 2003, the
> > authentication
> > dialog is presented and it is top-level above my window and it blocks
> > correctly, however in outlook 2007, the dialog box is displayed but
> > beneath
> > my application (it can also dissapear after a brief period of time) and it
> > does not block.
> > Is there any way to force it to block and display at the top-level,
> > perhaps
> > I can inform the application object of the windows handle I am using ??
> > Any further help would be greatly appreciated, Many thanks
> > Chris


>
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
D Outlook 2007 Recovering E-Mails Using Outlook 0
W Transfer Outlook 2016 autocomplete file to Outlook 2007 Using Outlook 1
C Outlook 2007 Removing then adding account restores junk email processing Using Outlook 0
S Outlook 2007 crash linked to gdiplus.dll Using Outlook 0
S Outlook 2007 - Automatic purge fail Using Outlook 0
J outlook 2007 doesn't let me choose which .pst to search Using Outlook 2
D Outlook 2007 vs. Outlook 2010 -- ToDo Bar Using Outlook 0
D Outlook 2007 on 365 Using Outlook.com accounts in Outlook 2
S Macro for other actions - Outlook 2007 Outlook VBA and Custom Forms 23
S Verwendung von Outlook 2007 Using Outlook 0
A Arthur needs help with 2007 Outlook e-mail Using Outlook.com accounts in Outlook 3
M PST import from Outlook 2007 to 2010 - Address Book contacts all in 1 group Using Outlook 4
S outlook 2007 calendar search Using Outlook 6
B Migrate Outlook 2007 to Office 365 Using Outlook 3
X I have met my waterloo trying to resolve embedded graphics problem with outlook 2007 and now 2016 Using Outlook 1
R Outlook 2007 only loads some appointments Using Outlook 0
C Move Outlook 2007 to new PC with Outlook 365 Using Outlook 3
J Outlook 2007 Hide Messages Option not Available Using Outlook 2
B Outllok 2007 License Expired issue Using Outlook 0
S Outlook 2007 Calendar instant search problem. Windows 7 Using Outlook 4
S Outlook 2007 Calendar instant search problem. Windows 7 Using Outlook 0
B Server errors Outlook 2007 Using Outlook 1
S Reboot of frozen windows7 results in changed outlook 2007 settings Using Outlook 1
S Outlook 2007 printing wrong email address at top of page Using Outlook 8
M Configure outlook 2007 to accept digital signatures Using Outlook 2
D Outlook 2007 crashes when opening an email Using Outlook 2
R New chap saying hello and needing advice on Outlook 2007 thumbnails Using Outlook 3
icacream From Outlook 2007 to 2016 ! Using Outlook 9
vodkasoda Object could not be found Error in Outlook 2007 Outlook VBA and Custom Forms 5
S Outlook 2007: Address Cards allow entering text! Why? Using Outlook 3
S View Appointment in Text Wrap in Outlook 2007 Month Calendar View Using Outlook 0
L Outlook 2007 Separate the Send/Receive functions Using Outlook 2
Steven 2007 New PC vs Old PC - Micro Font on Inbound Emails :( Using Outlook 4
M Outlook 2007 Contacts Glitch: Creating a new email Using Outlook 1
C Move from Outlook 2007 Enterprise (MOE) to Outlook Pro plus 2007 Using Outlook 1
J reinstalling Outlook 2007 asking for user name & password Using Outlook 14
P outlook addin unloaded in office 2007 Using Outlook 0
P Oulook addin unloaded in office 2007 Outlook VBA and Custom Forms 2
B Fonts in Outlook 2007 Using Outlook 4
R Add Exchange Account to existing POP3 Outlook 2007 Profile Using Outlook 0
C out of space in file group Outlook 2007 Using Outlook 2
A Moving archived contents in Outlook 2007 back into working folders Using Outlook 0
P Outlook 2007 Email Categorization using VBA Outlook VBA and Custom Forms 1
M Unable to Configure Gmail Account in Outlook 2007 Using Outlook 1
R Outlook 2007 or 2010 - Lock Down Functionality Outlook VBA and Custom Forms 3
S Outlook 2007, windows 10 Font size Using Outlook 1
norbertlars Exchange 2007 - quota not shown in clients Exchange Server Administration 2
Diane Poremsky Manually create a POP3 account in Outlook 2007 Using Outlook 0
J Can Click to Drag Custom Form Field But Cannot Drop When Designing in Outlook 2007 Outlook VBA and Custom Forms 2
L Outlook 2007 Font Using Outlook 3

Similar threads

Back
Top