src/native/addrbook/msoutlook/com/MsOutlookAddrBookClient.cxx
/**
 * Callback which receives each time the COM server found a contact when making
 * a search via the foreachMailUser function.
 *
 * @param id The contact identifier.
 * @param callback the callback address
 *
 * @return S_OK.
 */
Callback which receives each time the COM server found a contact when making
a search via the foreachMailUser function.

@param id The contact identifier.
@param callback the callback address


Callback which receives each time the COM server found a contact when making a search via the foreachMailUser function . @param id The contact identifier . @param callback the callback address
HRESULT STDMETHODCALLTYPE MsOutlookAddrBookClient::foreachMailUserCallback(
        BSTR id, long callback)
{
    char * charId = StringUtils::WideCharToMultiByte(id);
    boolean res = MAPINotification_callCallbackMethod(charId, callback);
    free(charId);
    if(res)
        return S_OK;
    else
        return E_ABORT;
}
HRESULT STDMETHODCALLTYPE MsOutlookAddrBookClient :: foreachMailUserCallback ( BSTR id , long callback ) { char * charId = StringUtils :: WideCharToMultiByte ( id ) ; boolean res = MAPINotification_callCallbackMethod ( charId , callback ) ; free ( charId ) ; if ( res ) return S_OK ; else return E_ABORT ; }
Callback which receives each time the COM server found a contact when making
 a search via the foreachMailUser function.
Callback which receives each time the COM server found a contact when making a search via the foreachMailUser function .