18 references to GetObjectForIUnknown
System.Private.Windows.Core (1)
System\Private\Windows\Ole\Composition.NativeToRuntimeAdapter.cs (1)
64return (IEnumFORMATETC)ComHelpers.GetObjectForIUnknown(nativeFormat);
System.Private.Windows.GdiPlus (2)
Windows\Win32\Graphics\GdiPlus\GpImageExtensions.cs (2)
48return (IPictureDisp.Interface)ComHelpers.GetObjectForIUnknown(picture); 63return (IPicture.Interface)ComHelpers.GetObjectForIUnknown(picture);
System.Windows.Forms (4)
System\Windows\Forms\Accessibility\AccessibleObject.cs (2)
1836return child.IsNull ? null : ComHelpers.GetObjectForIUnknown(child); 2243return dispatch.IsNull ? null : ComHelpers.GetObjectForIUnknown(dispatch);
System\Windows\Forms\ActiveX\AxHost.cs (2)
2268_instance = ComHelpers.GetObjectForIUnknown(unknown); 2290_instance = ComHelpers.GetObjectForIUnknown(unknown);
System.Windows.Forms.Primitives.Tests (3)
System\Windows\Forms\Automation\UiaTextRangeTests.cs (3)
33Assert.Equal(enclosingElement, ComHelpers.GetObjectForIUnknown(elementProviderScope)); 231UiaTextRange actual = (UiaTextRange)ComHelpers.GetObjectForIUnknown(rangeScope); 846Assert.Equal(enclosingElement, ComHelpers.GetObjectForIUnknown(actual));
System.Windows.Forms.Tests (8)
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (1)
1468Assert.Equal(toolStrip.AccessibilityObject, ComHelpers.GetObjectForIUnknown(actual));
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (4)
165Assert.Equal(comboBox.ChildEditAccessibleObject, ComHelpers.GetObjectForIUnknown(elementProvider)); 166UiaTextRange rangeObj = ComHelpers.GetObjectForIUnknown(range) as UiaTextRange; 961UiaTextRange textRange = ComHelpers.GetObjectForIUnknown(range) as UiaTextRange; 1024UiaTextRange textRange = ComHelpers.GetObjectForIUnknown(range) as UiaTextRange;
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyGridView.GridViewTextBox.GridViewTextBoxAccessibleObjectTests.cs (1)
84Assert.Same(dropDownHolder.AccessibilityObject, ComHelpers.GetObjectForIUnknown(previousAccessibleObject));
System\Windows\Forms\TextBoxBase.TextBoxBaseUiaTextProviderTests.cs (2)
831UiaTextRange textRange = ComHelpers.GetObjectForIUnknown(range) as UiaTextRange; 873UiaTextRange textRange = ComHelpers.GetObjectForIUnknown(range) as UiaTextRange;