// Token: 0x06000350 RID: 848 RVA: 0x00013FF8 File Offset: 0x000121F8 protected bool addIfSupported(object o, string name) { ISpecifyPropertyPages specifyPropertyPages = null; DsCAUUID dsCAUUID = default(DsCAUUID); bool result = false; try { specifyPropertyPages = (o as ISpecifyPropertyPages); if (specifyPropertyPages != null) { int pages = specifyPropertyPages.GetPages(ref dsCAUUID); if (pages != 0 || dsCAUUID.cElems <= 0) { specifyPropertyPages = null; } } } finally { if (dsCAUUID.pElems != IntPtr.Zero) { Marshal.FreeCoTaskMem(dsCAUUID.pElems); } } if (specifyPropertyPages != null) { DirectShowPropertyPage value = new DirectShowPropertyPage(name, specifyPropertyPages); this.InnerList.Add(value); result = true; } return(result); }
// Token: 0x060001A9 RID: 425 RVA: 0x000125F4 File Offset: 0x000107F4 public override void Show(Control owner) { DsCAUUID dsCAUUID = default(DsCAUUID); try { int num = this.specifyPropertyPages.GetPages(ref dsCAUUID); object obj = this.specifyPropertyPages; num = DirectShowPropertyPage.OleCreatePropertyFrame(owner.Handle, 30, 30, null, 1, ref obj, dsCAUUID.cElems, dsCAUUID.pElems, 0, 0, IntPtr.Zero); } finally { if (dsCAUUID.pElems != IntPtr.Zero) { Marshal.FreeCoTaskMem(dsCAUUID.pElems); } } }