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

@return S_OK if the contact was correctly deleted.
Deletes a given property for a contact . @param propId The identifier of the property to delete . @param entryId The identifier of the contact . @return S_OK if the contact was correctly deleted .
HRESULT STDMETHODCALLTYPE MsOutlookAddrBookServer::IMAPIProp_DeleteProp( 
        long propId,
        BSTR entryId)
{
    HRESULT hr = E_FAIL;
    if(entryId != NULL)
    {
        LPSTR nativeId = StringUtils::WideCharToMultiByte(entryId);
        if(MsOutlookAddrBookContactQuery_IMAPIProp_1DeleteProp(
                    propId,
                    nativeId) == 1)
        {
            hr = S_OK;
        }
        free(nativeId);
    }
    return hr;
}
HRESULT STDMETHODCALLTYPE MsOutlookAddrBookServer :: IMAPIProp_DeleteProp ( long propId , BSTR entryId ) { HRESULT hr = E_FAIL ; if ( entryId != NULL ) { LPSTR nativeId = StringUtils :: WideCharToMultiByte ( entryId ) ; if ( MsOutlookAddrBookContactQuery_IMAPIProp_1DeleteProp ( propId , nativeId ) == 1 ) { hr = S_OK ; } free ( nativeId ) ; } return hr ; }
Deletes a given property for a contact.
Deletes a given property for a contact .