37 references to GetObjectForIUnknown
mscorlib (5)
system\Runtime\InteropServices\ComEventsHelper.cs (1)
196rcw = Marshal.GetObjectForIUnknown(punk);
system\runtime\interopservices\marshal.cs (1)
1609pTI = (ITypeInfo)GetObjectForIUnknown(piTypeInfo);
system\runtime\interopservices\runtimeenvironment.cs (1)
172return Marshal.GetObjectForIUnknown(p);
system\Runtime\InteropServices\Variant.cs (2)
636return Marshal.GetObjectForIUnknown(_typeUnion._unionTypes._unknown); 655return Marshal.GetObjectForIUnknown(_typeUnion._unionTypes._dispatch);
PresentationCore (2)
Core\CSharp\System\Windows\DataObject.cs (2)
1875IStream istream = (IStream)( Marshal.GetObjectForIUnknown(medium.unionmember) ); 3092pStream = (UnsafeNativeMethods.IStream)Marshal.GetObjectForIUnknown(medium.unionmember);
PresentationFramework (2)
src\Framework\MS\Internal\AppModel\ApplicationProxyInternal.cs (2)
220try { initData.HostBrowser = (IHostBrowser)Marshal.GetObjectForIUnknown(pObj); } 1110_unmanagedStream = new SecurityCriticalData<object>(Marshal.GetObjectForIUnknown((IntPtr)value));
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (1)
1476dataObject = new DataObject((System.Runtime.InteropServices.ComTypes.IDataObject)Marshal.GetObjectForIUnknown(dataObjectPointer));
System.Data (3)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (1)
1476dataObject = new DataObject((System.Runtime.InteropServices.ComTypes.IDataObject)Marshal.GetObjectForIUnknown(dataObjectPointer));
fx\src\data\System\Data\OleDb\ColumnBinding.cs (2)
911value = Marshal.GetObjectForIUnknown(ptr); 940value = Marshal.GetObjectForIUnknown(ptr);
System.Management (10)
Instrumentation\EventSource.cs (1)
401comObject = Marshal.GetObjectForIUnknown(pUnk);
managementbaseobject.cs (1)
650(IWbemClassObject_DoNotMarshal)(Marshal.GetObjectForIUnknown(wbemObject)),
managementobject.cs (2)
1516wbemCallResult = (IWbemCallResult)Marshal.GetObjectForIUnknown(pwbemCallResult); 1821wbemCallResult = (IWbemCallResult)Marshal.GetObjectForIUnknown(pwbemCallResult);
managementobjectcollection.cs (1)
654Marshal.ReleaseComObject((IWbemClassObject_DoNotMarshal)(Marshal.GetObjectForIUnknown(cachedObjects[i])));
managementscope.cs (1)
683Object unknown = Marshal.GetObjectForIUnknown(pUnk);
property.cs (4)
525 ((IWbemClassObject_DoNotMarshal[])(wmiValue))[i] = (IWbemClassObject_DoNotMarshal)(Marshal.GetObjectForIUnknown(((ManagementBaseObject)valArray.GetValue(i)).wbemObject)); 600 wmiValue = Marshal.GetObjectForIUnknown(((ManagementBaseObject) val).wbemObject); 759 ((IWbemClassObject_DoNotMarshal[])(wmiValue))[i] = (IWbemClassObject_DoNotMarshal)(Marshal.GetObjectForIUnknown(((ManagementBaseObject)valArray.GetValue(i)).wbemObject)); 846 wmiValue = Marshal.GetObjectForIUnknown(((ManagementBaseObject) val).wbemObject);
System.ServiceModel (2)
System\ServiceModel\Administration\WbemProvider.cs (1)
166this.wbemServices = (WbemNative.IWbemServices)Marshal.GetObjectForIUnknown(pUnk);
System\ServiceModel\ComIntegration\ComPlusAuthorization.cs (1)
602if (Marshal.GetObjectForIUnknown(secCtx) != this)
System.Web (4)
Configuration\RemoteWebConfigurationHost.cs (2)
531return (IRemoteWebConfigurationHostServer)Marshal.GetObjectForIUnknown(amqi[0].pItf); 591return (IRemoteWebConfigurationHostServer)Marshal.GetObjectForIUnknown(amqi[0].pItf);
Hosting\ProcessHost.cs (1)
1359localProxy = (IListenerChannelCallback)Marshal.GetObjectForIUnknown(ppv);
Util\Misc.cs (1)
137localFunctions = (IProcessHostSupportFunctions)Marshal.GetObjectForIUnknown(ppv);
System.Windows.Forms (6)
winforms\Managed\System\WinForms\Application.cs (1)
2452object msgFilterObj = Marshal.GetObjectForIUnknown(msgFilterPtr);
winforms\Managed\System\WinForms\ComponentManagerBroker.cs (1)
171UnsafeNativeMethods.IMsoComponentManager original = (UnsafeNativeMethods.IMsoComponentManager)Marshal.GetObjectForIUnknown((IntPtr)pCM);
winforms\Managed\System\WinForms\Control.cs (1)
18987UnsafeNativeMethods.IFont nativeFont = (UnsafeNativeMethods.IFont)Marshal.GetObjectForIUnknown(pObj);
winforms\Managed\System\WinForms\DataObject.cs (1)
1418UnsafeNativeMethods.IStream pStream = (UnsafeNativeMethods.IStream)Marshal.GetObjectForIUnknown(medium.unionmember);
winforms\Managed\System\WinForms\NativeMethods.cs (1)
4500return Marshal.GetObjectForIUnknown(val);
winforms\Managed\System\WinForms\TextBoxBase.cs (1)
1847UnsafeNativeMethods.ITextDocument textDocument = Marshal.GetObjectForIUnknown(iTextDocument) as UnsafeNativeMethods.ITextDocument;
System.Workflow.ComponentModel (1)
AuthoringOM\Compiler\CompileXomlTask.cs (1)
77service = Marshal.GetObjectForIUnknown(pUnk);
WindowsBase (1)
Shared\MS\Win32\NativeMethodsCLR.cs (1)
4812return Marshal.GetObjectForIUnknown(val);