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