src/native/addrbook/msoutlook/com/MsOutlookAddrBookServer.cxx
/**
 * Calls back the java side to add a calendar item.
 *
 * @param iUnknown The string representation of the entry id of the calendar
 * item.
 *
 * @return True everything works fine and that we must continue to list the
 * other contacts. False otherwise.
 */
Calls back the java side to add a calendar item.
@param iUnknown The string representation of the entry id of the calendar
item.

@return True everything works fine and that we must continue to list the
other contacts. False otherwise.
Calls back the java side to add a calendar item . @param iUnknown The string representation of the entry id of the calendar item . @return True everything works fine and that we must continue to list the other contacts . False otherwise .
boolean MsOutlookAddrBookServer::foreachCalendarItemCallback(
        LPSTR iUnknown,
        void * callbackClient,
		long callbackAddress)
{
    HRESULT hr =  E_FAIL;
    if(callbackClient)
	{
		LPWSTR iUnknownW = StringUtils::MultiByteToWideChar(iUnknown);
		BSTR res = SysAllocString(iUnknownW);
		hr = ((IMsOutlookAddrBookClient *)callbackClient)
					->foreachCalendarItemCallback(res, callbackAddress);
		SysFreeString(res);
		free(iUnknownW);
	}
    return (hr == S_OK);
}
boolean MsOutlookAddrBookServer :: foreachCalendarItemCallback ( LPSTR iUnknown , void * callbackClient , long callbackAddress ) { HRESULT hr = E_FAIL ; if ( callbackClient ) { LPWSTR iUnknownW = StringUtils :: MultiByteToWideChar ( iUnknown ) ; BSTR res = SysAllocString ( iUnknownW ) ; hr = ( ( IMsOutlookAddrBookClient * ) callbackClient ) -> foreachCalendarItemCallback ( res , callbackAddress ) ; SysFreeString ( res ) ; free ( iUnknownW ) ; } return ( hr == S_OK ) ; }
Calls back the java side to add a calendar item.
Calls back the java side to add a calendar item .