![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
Hi,
i was just trying to create a profile programatically using MAPIs of C++ by using IMsgServiceAdmin and IProfAdmin interface apis. as given below if(FAILED(hRes = HrQueryAllRows(lpMsgSvcTable, (LPSPropTagArray)&Columns,/*NULL*/&sres, NULL, 0,&lpSvcRows))) { if(hRes ==MAPI_E_NOT_FOUND) MessageBox("notfound",NULL,MB_OK); else MessageBox("notfound",NULL,MB_OK); // MessageBox("Error querying table for new message service.", "HrQueryAllRows",MB_OK); } ZeroMemory(&rgval[1], sizeof(SPropValue)); rgval[1].ulPropTag = PR_PROFILE_UNRESOLVED_SERVER; rgval[1].Value.lpszA = szServer; // this where i am giving the server name ZeroMemory(&rgval[0],sizeof(SPropValue)); rgval[0].ulPropTag = PR_PROFILE_UNRESOLVED_NAME; rgval[0].Value.lpszA = szMailbox; // this where i am giving the mailbox name lpSvcAdmin-ConfigureMsgService( (LPMAPIUID)lpSvcRows-aRow-lpProps[iSvcUID].Value.bin.lpb, 0, /*ulFlags*//*0*/SERVICE_UI_ALWAYS, 2, rgval) when the ConfigureMsgService( ) API gets executes it should create a profile automatically when "rgval" parameter is not null. when the ConfigureMsgService( ) API gets executes it should create a profile by displaying a propertysheet when "rgval" parameter is null. But even when my "rgval " parameter is not null it is showing me propertysheet. if any one of you had faced this problem can u pls help me out in solving this problem i would be thankful to you. -- Message posted via http://www.officekb.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problems creating a new profile using PST folders | Raj | Outlook - Installation | 0 | August 24th 06 08:23 AM |
Creating Profile in Outlook | Ron Hughes | Outlook - Installation | 3 | June 19th 06 06:47 PM |
Creating a new MST for Office 2K3 and need help with the default profile variable | [email protected] | Outlook - Installation | 0 | May 5th 06 06:12 PM |
how to open a pst. that disappeared after creating a new profile | eiggom5 | Outlook - Using Contacts | 3 | April 1st 06 12:51 PM |
Creating an additional profile in Outlook 2000? | Rowdy | Outlook - General Queries | 2 | February 9th 06 02:45 AM |