Click here to Skip to main content
15,895,084 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: windows nt timestamp format Pin
198876514-Jul-05 14:19
198876514-Jul-05 14:19 
GeneralRe: windows nt timestamp format Pin
dandy7215-Jul-05 9:25
dandy7215-Jul-05 9:25 
GeneralTooltip Delay time Pin
LiYS13-Jul-05 22:02
LiYS13-Jul-05 22:02 
GeneralRe: Tooltip Delay time Pin
David Crow14-Jul-05 2:47
David Crow14-Jul-05 2:47 
GeneralOT: Seperat a file into three files Pin
Fahrrad13-Jul-05 21:06
Fahrrad13-Jul-05 21:06 
GeneralSCALING time on x-axis Pin
Raza568013-Jul-05 20:46
Raza568013-Jul-05 20:46 
GeneralRe: SCALING time on x-axis Pin
Stlan14-Jul-05 1:45
Stlan14-Jul-05 1:45 
GeneralMAPI, Profile, ConfigureMsgService() Pin
Anonymous13-Jul-05 20:45
Anonymous13-Jul-05 20:45 
Hello.

I need to set an [ExgangeServer] and a [User] to MAPI Profile.
I do it like this:

MAPIAdminProfiles(0L, &pProfAdmin);<br />
pProfAdmin -> AdminServices(m_ProfileName, "", 0L, 0L, &lpSvcAdmin );<br />
pSvcAdmin->CreateMsgService("MSEMS", "Microsoft Exchange", 0L, 0L);<br />
pSvcAdmin->GetMsgServiceTable(0L, &pMsgSvcTable);<br />
...<br />
HrQueryAllRows(pMsgSvcTable, (LPSPropTagArray)&sptCols, &sres, NULL, 0, &pRows);<br />
....<br />
<br />
SPropValue rgval[2];<br />
rgval[0].ulPropTag = PR_PROFILE_UNRESOLVED_NAME;<br />
rgval[0].Value.lpszA =  m_User;<br />
rgval[1].ulPropTag = PR_PROFILE_UNRESOLVED_SERVER;<br />
rgval[1].Value.lpszA = m_ExchangeServer; <br />
<br />
hr = pSvcAdmin->ConfigureMsgService(<br />
        (LPMAPIUID)pRows->aRow->lpProps[iSvcUID].Value.bin.lpb, 0, /*ulFlags*/0, 2, rgval); 


As it has been described in the article: http://support.microsoft.com/kb/q170225

The ulFlags parameter I set to the value 0 (!) to prevent any popup dialogs.
But anyway every time when I try to set different Exchange Server from another active directory, the
Authentication popup dialog appears. And User needs to type here the <domain>\<username> and <password>.

The question is:
How to prevent such a dialog to appear?
How is it possible to pass all the data (like this [domain]\[username] and [password]) by code in order to prevent the dialog to pop-up?

GeneralProblem with colour in Resource Editor Pin
Pazzuzu13-Jul-05 20:45
Pazzuzu13-Jul-05 20:45 
GeneralRe: Problem with colour in Resource Editor Pin
Alex_Y14-Jul-05 3:24
Alex_Y14-Jul-05 3:24 
GeneralRe: Problem with colour in Resource Editor Pin
Pazzuzu14-Jul-05 3:37
Pazzuzu14-Jul-05 3:37 
GeneralRe: Problem with colour in Resource Editor Pin
Alex_Y14-Jul-05 3:46
Alex_Y14-Jul-05 3:46 
GeneralRe: Problem with colour in Resource Editor Pin
Pazzuzu14-Jul-05 3:57
Pazzuzu14-Jul-05 3:57 
GeneralIE Settings Pin
Usman Tasleem Akshaf13-Jul-05 20:45
Usman Tasleem Akshaf13-Jul-05 20:45 
GeneralRe: IE Settings Pin
Monty213-Jul-05 21:20
Monty213-Jul-05 21:20 
GeneralRe: IE Settings Pin
ThatsAlok14-Jul-05 5:12
ThatsAlok14-Jul-05 5:12 
GeneralDynamic menu Pin
Halawlaws13-Jul-05 20:39
Halawlaws13-Jul-05 20:39 
GeneralRe: Dynamic menu Pin
Mark Greenwood13-Jul-05 21:23
Mark Greenwood13-Jul-05 21:23 
GeneralRe: Dynamic menu Pin
Halawlaws13-Jul-05 22:24
Halawlaws13-Jul-05 22:24 
GeneralRe: Dynamic menu Pin
Jose Lamas Rios15-Jul-05 5:00
Jose Lamas Rios15-Jul-05 5:00 
GeneralExecuting a BitMap on FullScreen Pin
a_david12313-Jul-05 20:31
a_david12313-Jul-05 20:31 
Generalproblem about ole Pin
William.Wang13-Jul-05 20:26
William.Wang13-Jul-05 20:26 
GeneralRemote execution Pin
dSolariuM13-Jul-05 20:24
dSolariuM13-Jul-05 20:24 
GeneralRe: Remote execution Pin
ThatsAlok14-Jul-05 5:17
ThatsAlok14-Jul-05 5:17 
GeneralBuild Automated DLL to be interfaced to VB6.0 Pin
thealca13-Jul-05 19:12
thealca13-Jul-05 19:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.