src/native/addrbook/msoutlook/com/MsOutlookAddrBookServer.cxx
/**
 * Deletes a contact.
 *
 * @param id The identifier of the contact to delete.
 *
 * @return S_OK if the contact was correctly deleted. E_FAIL otherwise.
 */
Deletes a contact.
@param id The identifier of the contact to delete.

@return S_OK if the contact was correctly deleted.
Deletes a contact . @param id The identifier of the contact to delete . @return S_OK if the contact was correctly deleted .
HRESULT STDMETHODCALLTYPE MsOutlookAddrBookServer::deleteContact( 
        BSTR id)
{
    HRESULT hr = E_FAIL;
    if(id != NULL)
    {
        LPSTR nativeId = StringUtils::WideCharToMultiByte(id);
        if(MsOutlookAddrBookContactQuery_deleteContact(nativeId) == 1)
        {
            hr = S_OK;
        }
        free(nativeId);
    }
    return hr;
}
HRESULT STDMETHODCALLTYPE MsOutlookAddrBookServer :: deleteContact ( BSTR id ) { HRESULT hr = E_FAIL ; if ( id != NULL ) { LPSTR nativeId = StringUtils :: WideCharToMultiByte ( id ) ; if ( MsOutlookAddrBookContactQuery_deleteContact ( nativeId ) == 1 ) { hr = S_OK ; } free ( nativeId ) ; } return hr ; }
Deletes a contact.
Deletes a contact .