Ignore:
Timestamp:
Sep 5, 2001, 3:19:02 PM (24 years ago)
Author:
bird
Message:

Added $Id:$ keyword.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ole32/antimoniker.c

    r5602 r6648  
     1/* $Id: antimoniker.c,v 1.2 2001-09-05 13:17:07 bird Exp $ */
    12/***************************************************************************************
    2  *                            AntiMonikers implementation
     3 *                        AntiMonikers implementation
    34 *
    45 *               Copyright 1999  Noomen Hamza
     
    2223    ICOM_VTABLE(IMoniker)*  lpvtbl1;  /* VTable relative to the IMoniker interface.*/
    2324
    24     /* The ROT (RunningObjectTable implementation) uses the IROTData interface to test whether 
     25    /* The ROT (RunningObjectTable implementation) uses the IROTData interface to test whether
    2526     * two monikers are equal. That's whay IROTData interface is implemented by monikers.
    2627     */
     
    128129{
    129130    ICOM_THIS(AntiMonikerImpl,iface);
    130  
     131
    131132  TRACE("(%p,%p,%p)\n",This,riid,ppvObject);
    132133
    133134  /* Perform a sanity check on the parameters.*/
    134135    if ( (This==0) || (ppvObject==0) )
    135         return E_INVALIDARG;
    136  
     136    return E_INVALIDARG;
     137
    137138  /* Initialize the return parameter */
    138139  *ppvObject = 0;
     
    151152    if ((*ppvObject)==0)
    152153        return E_NOINTERFACE;
    153  
     154
    154155   /* Query Interface always increases the reference count by one when it is successful */
    155156  AntiMonikerImpl_AddRef(iface);
     
    200201    if (pClassID==NULL)
    201202        return E_POINTER;
    202            
     203
    203204    *pClassID = CLSID_AntiMoniker;
    204        
     205
    205206    return S_OK;
    206207}
     
    244245    DWORD constant=1;
    245246    HRESULT res;
    246    
     247
    247248    /* data writen by this function is only a DWORD constant seted to 1 ! */
    248249    res=IStream_Write(pStm,&constant,sizeof(constant),NULL);
     
    263264
    264265    /* for more details see AntiMonikerImpl_Save coments */
    265    
     266
    266267    /* Normaly the sizemax must be the  size of DWORD ! but I tested this function it ususlly return 16 bytes */
    267268    /* more than the number of bytes used by AntiMoniker::Save function */
     
    342343
    343344    *ppmkReduced=iface;
    344    
     345
    345346    return MK_S_REDUCED_TO_SELF;
    346347}
     
    357358
    358359    if ((ppmkComposite==NULL)||(pmkRight==NULL))
    359         return E_POINTER;
     360    return E_POINTER;
    360361
    361362    *ppmkComposite=0;
    362    
     363
    363364    if (fOnlyIfNotGeneric)
    364365        return MK_E_NEEDGENERIC;
     
    376377    if (ppenumMoniker == NULL)
    377378        return E_POINTER;
    378    
     379
    379380    *ppenumMoniker = NULL;
    380381
     
    388389{
    389390    DWORD mkSys;
    390    
     391
    391392    TRACE("(%p,%p)\n",iface,pmkOtherMoniker);
    392393
    393394    if (pmkOtherMoniker==NULL)
    394395        return S_FALSE;
    395    
     396
    396397    IMoniker_IsSystemMoniker(pmkOtherMoniker,&mkSys);
    397398
     
    476477{
    477478    DWORD mkSys;
    478    
     479
    479480    IMoniker_IsSystemMoniker(pmkOther,&mkSys);
    480481
     
    486487
    487488        IMoniker_AddRef(iface);
    488        
     489
    489490        return MK_S_US;
    490491    }
     
    519520{
    520521    WCHAR back[]={'\\','.','.',0};
    521    
     522
    522523    TRACE("(%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,ppszDisplayName);
    523524
     
    536537
    537538    strcpyW(*ppszDisplayName,back);
    538    
     539
    539540    return S_OK;
    540541}
     
    563564    if (!pwdMksys)
    564565        return E_POINTER;
    565    
     566
    566567    (*pwdMksys)=MKSYS_ANTIMONIKER;
    567568
     
    600601{
    601602    ICOM_THIS_From_IROTData(IMoniker, iface);
    602    
     603
    603604    TRACE("(%p)\n",iface);
    604605
     
    619620
    620621/******************************************************************************
    621  *        CreateAntiMoniker     [OLE.55]
     622 *        CreateAntiMoniker [OLE.55]
    622623 ******************************************************************************/
    623624HRESULT WINAPI CreateAntiMoniker(LPMONIKER * ppmk)
     
    626627    HRESULT        hr = S_OK;
    627628    IID riid=IID_IMoniker;
    628    
     629
    629630    TRACE("(%p)\n",ppmk);
    630631
Note: See TracChangeset for help on using the changeset viewer.