src/native/addrbook/msoutlook/com/MsOutlookAddrBookServer.cxx
/**
 * Calls back the java side to list a contact.
 *
 * @param iUnknown The string representation of the entry id of the contact.
 * @param callbackClient the client object to call the callback and pass the
 * result and the callbackAddress we have received.
 * @param callbackAddress the address of the callback function.
 *
 * @return True everything works fine and that we must continue to list the
 * other contacts. False otherwise.
 */
Calls back the java side to list a contact.
@param iUnknown The string representation of the entry id of the contact.
@param callbackClient the client object to call the callback and pass the
result and the callbackAddress we have received.
@param callbackAddress the address of the callback function.

@return True everything works fine and that we must continue to list the
other contacts. False otherwise.
Calls back the java side to list a contact . @param iUnknown The string representation of the entry id of the contact . @param callbackClient the client object to call the callback and pass the result and the callbackAddress we have received . @param callbackAddress the address of the callback function . @return True everything works fine and that we must continue to list the other contacts . False otherwise .
boolean MsOutlookAddrBookServer::foreachMailUserCallback(
        LPSTR iUnknown,
        void * callbackClient,
        long callbackAddress)
{
    HRESULT hr =  E_FAIL;
    if(callbackClient)
    {
    	MsOutlookUtils_log("Contact received. The contact will be send to the client.");
        LPWSTR iUnknownW = StringUtils::MultiByteToWideChar(iUnknown);
        BSTR res = SysAllocString(iUnknownW);
        hr = ((IMsOutlookAddrBookClient *)callbackClient)
                    ->foreachMailUserCallback(res, callbackAddress);
        SysFreeString(res);
        free(iUnknownW);
    }
    else
    {
    	MsOutlookUtils_log("No callback client");
    }
    return (hr == S_OK);
}
boolean MsOutlookAddrBookServer :: foreachMailUserCallback ( LPSTR iUnknown , void * callbackClient , long callbackAddress ) { HRESULT hr = E_FAIL ; if ( callbackClient ) { MsOutlookUtils_log ( " " ) ; LPWSTR iUnknownW = StringUtils :: MultiByteToWideChar ( iUnknown ) ; BSTR res = SysAllocString ( iUnknownW ) ; hr = ( ( IMsOutlookAddrBookClient * ) callbackClient ) -> foreachMailUserCallback ( res , callbackAddress ) ; SysFreeString ( res ) ; free ( iUnknownW ) ; } else { MsOutlookUtils_log ( " " ) ; } return ( hr == S_OK ) ; }
Calls back the java side to list a contact.
Calls back the java side to list a contact .