????? ??????? ???? "??? Exchange ?????? ??????" ?? ????????? MAPI ??????? ?? Outlook 2003

?????? ????????? ?????? ?????????
???? ???????: 834496 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

????? ???

??? ??? Exchange ?????? ?????? ???? ????? ?? Microsoft Office Outlook 2003. ???? ??? Exchange ?????? ?????? Outlook 2003 ??????? ???? ????? ?? ???? ?????? ?????? ??????? ????? ????? Outlook 2003 ????? ??? ?????? ??? ???? ????? ?? ???? ?????? ?????? ??????? ?? Microsoft Exchange. ?? ????? ??? ????? ????? ??? ?????? ??? ?????? ?????? ??? ??? ????? ????? ?? ??? ?????? ???????? Extended MAPI.

??????? ????

?? ???? ????? Outlook 2003 ?? "??? Exchange ?????? ??????", ????? ??????? ??? ??????? Extended MAPI ????? ?????? ??? ??? ???? ????? ??? ???? ??????? ??????? ??????. ??? ????? ??? ?????? ??? ?????? ??? "?" ????????? ???? ??? ?? ???? ????? ?? ???? ??????. ?? ??? ???????? ?? ??? ???? ?? ???? ???. ????? Outlook 2003 ????? ???? ???? MDB_ONLINE:
#define MDB_ONLINE ((ULONG) 0x00000100)
??? ??????? ???? ????? ??? ????? MAPI IMAPISession::OpenMsgStore. ??? ??????? ?????? ??????? ???? ??????? ??????? ???? ??? ?????? ??? ?????? ??????.

?????? ??? ?? ???? ??? ??????? ???? Exchange ???? ???? ?? ??? ??????? ?????? ??? ??? ??? ??????? ?? ??? ????? ?? ??? ???? ??? MAPI. ??? ??? ?????? ?? ??? ???? ???? ??????? ??????? ?????? ??? ??? ????? ?????? ??? ??? ??? ????? ?? ??? ???? ??? MAPI ????? ??? ????? ??? ???? Exchange ??? ?????? ?????? ???????? ??? ???????.

The following code demonstrates how to use this flag:
    //Obtain the table of all the message stores that are available
    hRes = lpMAPISession -> GetMsgStoresTable(0, &pStoresTbl);
    
    //Set up restrictions for the default store
    sres.rt = RES_PROPERTY;                                  //Comparing a property
    sres.res.resProperty.relop = RELOP_EQ;                   //Testing equality
    sres.res.resProperty.ulPropTag = PR_DEFAULT_STORE;       //Tag to compare
    sres.res.resProperty.lpProp = &spv;                      //Prop tag and value to compare against
    
    spv.ulPropTag = PR_DEFAULT_STORE;                        //Tag type
    spv.Value.b   = TRUE;                                    //Tag value
    
    //Convert the table to an array that can be stepped through
    //Only one message store should have PR_DEFAULT_STORE set to true, so that only one will be returned
    hRes = HrQueryAllRows(
        pStoresTbl,                                          //Table to query
        (LPSPropTagArray) &sptCols,                          //Which columns to obtain
        &sres,                                               //Restriction to use
        NULL,                                                //No sort order
        0,                                                   //Max number of rows (0 means no limit)
        &pRow);                                              //Array to return
    
    //Open the first returned (default) message store
    hRes = lpMAPISession->OpenMsgStore(
        NULL,                                                //Window handle for dialogs
        pRow->aRow[0].lpProps[EID].Value.bin.cb,             //size and...
        (LPENTRYID)pRow->aRow[0].lpProps[EID].Value.bin.lpb, //value of entry to open
        NULL,                                                //Use default interface (IMsgStore) to open store
        MAPI_BEST_ACCESS | MDB_ONLINE,                       //Flags
        &lpTempMDB);                                         //Pointer to put the store in
???????? ??? ???? ????? ????? ????? ??????? ?????? ??? ????? ????? ?? ???????? ?????? ????? ????? MAPI_NO_CACHE ??? ????? MAPI IMsgStore::OpenEntry:
#define MAPI_NO_CACHE ((ULONG) 0x00000200)
???? ???????? ???????? ?????? ???? ????? ??????? ??? ???????:
    // Open the root folder of the message store
    hRes = lpMDB->OpenEntry(
        0,                                                   // size of entry ID                            
        NULL,                                                // Pointer to entry ID
        NULL,                                                // Use default interface (IMAPIFolder)
        MAPI_BEST_ACCESS | MAPI_NO_CACHE,                    // Flags
        &ulObjType,                                          // Output parameter indicates the type of object that is returned
        (LPUNKNOWN *)&lpRootFolder)))                        // Pointer to put the opened item in
?????? ?? ???? ??? ???? ??????? ????? MDB_ONLINE ? ?? ??? ???? ???????? ??????? MAPI_NO_CACHE.

???????

???? ???????: 834496 - ????? ??? ??????: 11/???? ??????/1426 - ??????: 2.2
????? ???
  • Microsoft Office Outlook 2003
????? ??????: 
kbmt kbprogramming kbsample kbmsg kbinfo KB834496 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????834496

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com