B
Bernie
Is there any way to authenticate to an Exchange server without any user
interaction?
The exact situation is as follows:
I have an XP machine with Outlook 2003 that is connected to an Exchange
2003 server, and my program is supposed to enumerate the user's Exchange
folders as well as use the GetSharedDefaultFolder method to access another
user's inbox. The code works fine, except that Outlook requires the user
to enter the Exchange password manually, and I can't for the life of me
figure out how to avoid that. The Save Password checkbox on the dialog has
no effect either.
Both user name and password are known to my application, I just can't
figure out what to do with them.
My current approach is to create a separate thread that looks for login
windows and enters the Exchange password by simulating user input.
However, this is somewhat error-prone and doesn't work at all when the
workstation is locked (I assume it's because the login window can't get
the focus which is required to receive keyboard input).
I'm somewhat of a newbie in this area, so apologies if I'm posting this to
the wrong place. I'll also gladly accept an RTFM-style reply, as long as
it's accompanied by a hint where to find an FM that actually answers my
question (neither Google nor MSDN have proved too helpful on this
particular subject, or maybe I just didn't look in the right place).
Anyways, all help would be *much* appreciated.
interaction?
The exact situation is as follows:
I have an XP machine with Outlook 2003 that is connected to an Exchange
2003 server, and my program is supposed to enumerate the user's Exchange
folders as well as use the GetSharedDefaultFolder method to access another
user's inbox. The code works fine, except that Outlook requires the user
to enter the Exchange password manually, and I can't for the life of me
figure out how to avoid that. The Save Password checkbox on the dialog has
no effect either.
Both user name and password are known to my application, I just can't
figure out what to do with them.
My current approach is to create a separate thread that looks for login
windows and enters the Exchange password by simulating user input.
However, this is somewhat error-prone and doesn't work at all when the
workstation is locked (I assume it's because the login window can't get
the focus which is required to receive keyboard input).
I'm somewhat of a newbie in this area, so apologies if I'm posting this to
the wrong place. I'll also gladly accept an RTFM-style reply, as long as
it's accompanied by a hint where to find an FM that actually answers my
question (neither Google nor MSDN have proved too helpful on this
particular subject, or maybe I just didn't look in the right place).
Anyways, all help would be *much* appreciated.