Re: Unable to open msg store if first prompt for password canceled
- From: changliw@xxxxxxxxxxxxxxxxxxxx ("Charles Wang [MSFT]")
- Date: Tue, 19 Aug 2008 09:15:38 GMT
Hi Ashutosh,
Thank you for posting the sample project.
You said that "If I use the account management API to get the account of a profile, and after that call IMAPISession::OpenMsgStore, it prompts for the password
only once.", however I did not find IMAPISession::OpenMsgStore was called in your code. However I looked through your code and just found that GetAccounts would be called when I clicked the
button. Within the function GetAccounts, I did not find OpenMsgStore. Could you please elaborate your issue scenario?
By the way, I notice that you wrote many statements to get properties of an account, for example:
//Account User Display Name
hRes = lpAccount->GetProp(PROP_ACCT_USER_DISPLAY_NAME, &pProp);
if(SUCCEEDED(hRes) && pProp.Val.pwsz)
{
pAccounts[i].szUserDisplayName = pProp.Val.pwsz;
hRes = lpAccount->FreeMemory((LPBYTE)pProp.Val.pwsz);
}
I have one question or the code, when some of the GetProp functions fail but the last GetProp function succeeds before return, you think the function GetAccounts succeeds; while when some of
the GetProp functions fail but the last GetProp succeeds, you think that the function fails, right? Is this your real requirement?
Look forward to your response.
Best regards,
Charles Wang
Microsoft Online Community Support
=========================================================
Delighting our customers is our #1 priority. We welcome your
comments and suggestions about how we can improve the
support we provide to you. Please feel free to let my manager
know what you think of the level of service provided. You can
send feedback directly to my manager at: msdnmg@xxxxxxxxxxxxxx
=========================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
=========================================================
.
- Follow-Ups:
- References:
- Unable to open msg store if first prompt for password canceled
- From: Ashutosh
- RE: Unable to open msg store if first prompt for password canceled
- From: "Charles Wang [MSFT]"
- Re: Unable to open msg store if first prompt for password canceled
- From: Ashutosh
- Unable to open msg store if first prompt for password canceled
- Prev by Date: Contacts folder properties
- Next by Date: Re: Unable to open msg store if first prompt for password canceled
- Previous by thread: Re: Unable to open msg store if first prompt for password canceled
- Next by thread: Re: Unable to open msg store if first prompt for password canceled
- Index(es):