|
|
|
date: Mon, 4 Aug 2008 10:21:00 -0700,
group: microsoft.public.platformsdk.mapi
back
Re: MAPI Logon
The CreateProfile return MAPI_E_NO_ACCESS
When I do that it working
hr = MAPI_E_NO_ACCESS;
int TRY_CREATE_PROFILE = 3000;
while(hr == MAPI_E_NO_ACCESS && TRY_CREATE_PROFILE--)
{
hr = pProfAdmin_->CreateProfile( buf, NULL, 0L, 0L);
if (hr == MAPI_E_NO_ACCESS)
{
mapi_EnsureCrazyProfileDeleted(pProfAdmin_, profile_);
CTime time = CTime::GetCurrentTime();
sprintf( buf, "Profile_%d_%d_%d_%d", time.GetYear(),
time.GetMonth(), time.GetDay(),
time.GetTickCount());
continue;
}
}
if ( FAILED(hr) )
{
throw _com_error(hr);
}
date: Tue, 5 Aug 2008 04:11:01 -0700
author: Arthur Romanoff
|
|