11 writes to unionmember
PresentationCore (5)
Core\CSharp\System\Windows\DataObject.cs (5)
822
medium.
unionmember
= Win32GlobalAlloc(NativeMethods.GMEM_MOVEABLE
845
medium.
unionmember
= Marshal.GetComInterfaceForObject(istream, typeof(IStream));
871
medium.
unionmember
= IntPtr.Zero;
1941
medium.
unionmember
= hBitmap;
1978
medium.
unionmember
= hMetafile;
System.Windows.Forms (5)
winforms\Managed\System\WinForms\DataObject.cs (5)
615
medium.
unionmember
= GetCompatibleBitmap(bm); // gpr: Does this get properly disposed?
760
medium.
unionmember
= UnsafeNativeMethods.GlobalAlloc(NativeMethods.GMEM_MOVEABLE
773
medium.
unionmember
= IntPtr.Zero;
871
hr = SaveStreamToHandle(ref medium.
unionmember
, (Stream)data);
915
hr = SaveObjectToHandle(ref medium.
unionmember
, data);
WsatUI (1)
MMCUI\WSATPropertySheet.cs (1)
155
stg.
unionmember
= SafeNativeMethods.GlobalAlloc(SafeNativeMethods.GMEM_SHARE, 255);
40 references to unionmember
PresentationCore (20)
Core\CSharp\System\Windows\DataObject.cs (20)
831
Win32GlobalFree(new HandleRef(this, medium.
unionmember
));
852
Marshal.Release(medium.
unionmember
);
1781
hr = SaveStreamToHandle(medium.
unionmember
, (Stream)data, doNotReallocate);
1787
hr = SaveStringToHandleAsUtf8(medium.
unionmember
, data.ToString(), doNotReallocate);
1794
hr = SaveStringToHandle(medium.
unionmember
, data.ToString(), false /* unicode */, doNotReallocate);
1799
hr = SaveStringToHandle(medium.
unionmember
, data.ToString(), true /* unicode */, doNotReallocate);
1803
hr = SaveFileListToHandle(medium.
unionmember
, (string[])data, doNotReallocate);
1810
hr = SaveStringToHandle(medium.
unionmember
, filelist[0], false /* unicode */, doNotReallocate);
1817
hr = SaveStringToHandle(medium.
unionmember
, filelist[0], true /* unicode */, doNotReallocate);
1831
hr = SaveSystemBitmapSourceToHandle(medium.
unionmember
, data, doNotReallocate);
1836
hr = SaveSystemDrawingBitmapToHandle(medium.
unionmember
, data, doNotReallocate);
1849
hr = SaveObjectToHandle(medium.
unionmember
, data, doNotReallocate);
1875
IStream istream = (IStream)( Marshal.GetObjectForIUnknown(medium.
unionmember
) );
3088
if (medium.
unionmember
!= IntPtr.Zero && medium.tymed == TYMED.TYMED_ISTREAM)
3092
pStream = (UnsafeNativeMethods.IStream)Marshal.GetObjectForIUnknown(medium.
unionmember
);
3257
if (medium.
unionmember
!= IntPtr.Zero && medium.tymed == TYMED.TYMED_HGLOBAL)
3259
data = GetDataFromHGLOBAL(format, medium.
unionmember
);
3318
if (medium.
unionmember
!= IntPtr.Zero)
3324
data = GetBitmapSourceFromHbitmap(medium.
unionmember
);
3329
data = SystemDrawingHelper.GetMetafileFromHemf(medium.
unionmember
);
System.Windows.Forms (18)
winforms\Managed\System\WinForms\DataObject.cs (18)
764
if (medium.
unionmember
== IntPtr.Zero) {
772
UnsafeNativeMethods.GlobalFree(new HandleRef(medium, medium.
unionmember
));
876
hr = SaveStringToHandle(medium.
unionmember
, data.ToString(), false);
880
hr = SaveHtmlToHandle(medium.
unionmember
, data.ToString());
887
hr = SaveStringToHandle(medium.
unionmember
, data.ToString(), false);
891
hr = SaveStringToHandle(medium.
unionmember
, data.ToString(), true);
894
hr = SaveFileListToHandle(medium.
unionmember
, (string[])data);
898
hr = SaveStringToHandle(medium.
unionmember
, filelist[0], false);
902
hr = SaveStringToHandle(medium.
unionmember
, filelist[0], true);
1417
if (medium.
unionmember
!= IntPtr.Zero) {
1418
UnsafeNativeMethods.IStream pStream = (UnsafeNativeMethods.IStream)Marshal.GetObjectForIUnknown(medium.
unionmember
);
1419
Marshal.Release(medium.
unionmember
);
1558
if (medium.
unionmember
!= IntPtr.Zero) {
1559
data = GetDataFromHGLOBLAL(format, medium.
unionmember
);
1618
if (medium.
unionmember
!= IntPtr.Zero) {
1630
System.Internal.HandleCollector.Add(medium.
unionmember
, NativeMethods.CommonHandles.GDI);
1635
clipboardImage = Image.FromHbitmap(medium.
unionmember
);
1644
SafeNativeMethods.DeleteObject(new HandleRef(null, medium.
unionmember
));
WsatUI (2)
MMCUI\WSATPropertySheet.cs (2)
156
if (stg.
unionmember
== IntPtr.Zero)
173
value = Marshal.PtrToStringUni(stg.
unionmember
);