Changeset 8620 for trunk/src/ole32/itemmoniker.c
- Timestamp:
- Jun 9, 2002, 6:37:22 PM (23 years ago)
- File:
-
- 1 edited
-
trunk/src/ole32/itemmoniker.c (modified) (23 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ole32/itemmoniker.c
r8441 r8620 39 39 ICOM_VTABLE(IMoniker)* lpvtbl1; /* VTable relative to the IMoniker interface.*/ 40 40 41 /* The ROT (RunningObjectTable implementation) uses the IROTData interface to test whether 41 /* The ROT (RunningObjectTable implementation) uses the IROTData interface to test whether 42 42 * two monikers are equal. That's whay IROTData interface is implemented by monikers. 43 43 */ … … 49 49 50 50 LPOLESTR itemDelimiter; /* Delimiter string */ 51 51 52 52 } ItemMonikerImpl; 53 53 … … 155 155 if ( (This==0) || (ppvObject==0) ) 156 156 return E_INVALIDARG; 157 157 158 158 /* Initialize the return parameter */ 159 159 *ppvObject = 0; … … 166 166 ) 167 167 *ppvObject = iface; 168 168 169 169 else if (IsEqualIID(&IID_IROTData, riid)) 170 170 *ppvObject = (IROTData*)&(This->lpvtbl2); … … 173 173 if ((*ppvObject)==0) 174 174 return E_NOINTERFACE; 175 175 176 176 /* Query Interface always increases the reference count by one when it is successful */ 177 177 ItemMonikerImpl_AddRef(iface); … … 210 210 return 0; 211 211 } 212 return This->ref; ;212 return This->ref; 213 213 } 214 214 … … 222 222 if (pClassID==NULL) 223 223 return E_POINTER; 224 224 225 225 *pClassID = CLSID_ItemMoniker; 226 226 227 227 return S_OK; 228 228 } … … 356 356 357 357 /* for more details see ItemMonikerImpl_Save coments */ 358 358 359 359 pcbSize->s.LowPart = sizeof(DWORD) + /* DWORD which contains delimiter length */ 360 360 delimiterLength + /* item delimiter string */ … … 433 433 { 434 434 ICOM_THIS(ItemMonikerImpl,iface); 435 435 436 436 HRESULT res; 437 437 IID refid=IID_IOleItemContainer; … … 480 480 if(pmkToLeft==NULL) 481 481 return E_INVALIDARG; 482 482 483 483 res=IMoniker_BindToObject(pmkToLeft,pbc,NULL,&IID_IOleItemContainer,(void**)&poic); 484 484 … … 510 510 511 511 *ppmkReduced=iface; 512 512 513 513 return MK_S_REDUCED_TO_SELF; 514 514 } … … 533 533 534 534 *ppmkComposite=0; 535 535 536 536 IMoniker_IsSystemMoniker(pmkRight,&mkSys); 537 537 … … 543 543 /* if pmkRight is a composite whose leftmost component is an anti-moniker, */ 544 544 /* the returned moniker is the composite after the leftmost anti-moniker is removed. */ 545 545 546 546 if(mkSys==MKSYS_GENERICCOMPOSITE){ 547 547 … … 561 561 tempMkComposite=iface; 562 562 IMoniker_AddRef(iface); 563 563 564 564 while(IEnumMoniker_Next(penumMk,1,&pmostLeftMk,NULL)==S_OK){ 565 565 … … 618 618 if (pmkOtherMoniker==NULL) 619 619 return S_FALSE; 620 620 621 621 /* This method returns S_OK if both monikers are item monikers and their display names are */ 622 622 /* identical (using a case-insensitive comparison); otherwise, the method returns S_FALSE. */ … … 633 633 IMoniker_GetDisplayName(iface,bind,NULL,&dispName1); 634 634 IMoniker_GetDisplayName(pmkOtherMoniker,bind,NULL,&dispName2); 635 635 636 636 if (lstrcmpW(dispName1,dispName2)!=0) 637 637 return S_FALSE; 638 638 639 639 return S_OK; 640 640 } … … 653 653 if (pdwHash==NULL) 654 654 return E_POINTER; 655 655 656 656 val = This->itemName; 657 657 len = lstrlenW(val); … … 712 712 /* requesting an IOleItemContainer interface pointer. The method then calls IOleItemContainer::IsRunning,*/ 713 713 /* passing the string contained within this moniker. */ 714 714 715 715 res=IMoniker_BindToObject(pmkToLeft,pbc,NULL,&IID_IOleItemContainer,(void**)&poic); 716 716 … … 793 793 794 794 *ppmkPrefix=iface; 795 795 796 796 IMoniker_AddRef(iface); 797 797 798 798 return MK_S_US; 799 799 } … … 815 815 816 816 *ppmkRelPath=0; 817 817 818 818 return MK_E_NOTBINDABLE; 819 819 } … … 845 845 strcpyW(*ppszDisplayName,This->itemDelimiter); 846 846 strcatW(*ppszDisplayName,This->itemName); 847 847 848 848 return S_OK; 849 849 } … … 900 900 if (!pwdMksys) 901 901 return E_POINTER; 902 902 903 903 (*pwdMksys)=MKSYS_ITEMMONIKER; 904 904 … … 937 937 { 938 938 ICOM_THIS_From_IROTData(IMoniker, iface); 939 939 940 940 TRACE("(%p)\n",iface); 941 941
Note:
See TracChangeset
for help on using the changeset viewer.
