17 writes to unionmember
PresentationCore (5)
System\Windows\dataobject.cs (5)
647medium.unionmember = Win32GlobalAlloc(NativeMethods.GMEM_MOVEABLE 667medium.unionmember = Marshal.GetComInterfaceForObject(istream, typeof(IStream)); 688medium.unionmember = IntPtr.Zero; 1613medium.unionmember = hBitmap; 1646medium.unionmember = hMetafile;
System.Windows.Forms (4)
System\Windows\Forms\OLE\DragDropHelper.cs (4)
279unionmember = PInvokeCore.GlobalAlloc(GMEM_MOVEABLE | GMEM_ZEROINIT, (nuint)sizeof(BOOL)) 291medium.unionmember = IntPtr.Zero; 435unionmember = PInvokeCore.GlobalAlloc(GMEM_MOVEABLE | GMEM_ZEROINIT, (uint)sizeof(DROPDESCRIPTION)) 447medium.unionmember = IntPtr.Zero;
System.Windows.Forms.Primitives (1)
Windows\Win32\System\Com\STGMEDIUM.cs (1)
34unionmember = stg.u.hGlobal
System.Windows.Forms.Tests (7)
System\Windows\Forms\DataObjectTests.cs (5)
1854medium.unionmember = metafile.GetHenhmetafile(); 2400stgMedium.unionmember = handle; 2443stgMedium.unionmember = handle; 2523stgMedium.unionmember = handle; 2564stgMedium.unionmember = handle;
System\Windows\Forms\DragDropFormatTests.cs (2)
38unionmember = PInvokeCore.GlobalAlloc( 61unionmember = Marshal.GetIUnknownForObject(iStream)
39 references to unionmember
PresentationCore (20)
System\Windows\dataobject.cs (20)
656Win32GlobalFree(new HandleRef(this, medium.unionmember)); 674Marshal.Release(medium.unionmember); 1461hr = SaveStreamToHandle(medium.unionmember, (Stream)data, doNotReallocate); 1467hr = SaveStringToHandleAsUtf8(medium.unionmember, data.ToString(), doNotReallocate); 1474hr = SaveStringToHandle(medium.unionmember, data.ToString(), false /* unicode */, doNotReallocate); 1479hr = SaveStringToHandle(medium.unionmember, data.ToString(), true /* unicode */, doNotReallocate); 1483hr = SaveFileListToHandle(medium.unionmember, (string[])data, doNotReallocate); 1490hr = SaveStringToHandle(medium.unionmember, filelist[0], false /* unicode */, doNotReallocate); 1497hr = SaveStringToHandle(medium.unionmember, filelist[0], true /* unicode */, doNotReallocate); 1511hr = SaveSystemBitmapSourceToHandle(medium.unionmember, data, doNotReallocate); 1516hr = SaveSystemDrawingBitmapToHandle(medium.unionmember, data, doNotReallocate); 1530hr = SaveObjectToHandle(medium.unionmember, data, doNotReallocate); 1552IStream istream = (IStream)( Marshal.GetObjectForIUnknown(medium.unionmember) ); 2683if (medium.unionmember != IntPtr.Zero && medium.tymed == TYMED.TYMED_ISTREAM) 2687pStream = (UnsafeNativeMethods.IStream)Marshal.GetObjectForIUnknown(medium.unionmember); 2855if (medium.unionmember != IntPtr.Zero && medium.tymed == TYMED.TYMED_HGLOBAL) 2857data = GetDataFromHGLOBAL(format, medium.unionmember); 2911if (medium.unionmember != IntPtr.Zero) 2917data = GetBitmapSourceFromHbitmap(medium.unionmember); 2922data = SystemDrawingHelper.GetMetafileFromHemf(medium.unionmember);
System.Windows.Forms (10)
System\Windows\Forms\OLE\DragDropHelper.cs (10)
177void* basePtr = PInvokeCore.GlobalLock((HGLOBAL)medium.unionmember); 182PInvokeCore.GlobalUnlock((HGLOBAL)medium.unionmember); 282if (medium.unionmember == IntPtr.Zero) 287void* basePtr = PInvokeCore.GlobalLock((HGLOBAL)medium.unionmember); 290PInvokeCore.GlobalFree((HGLOBAL)medium.unionmember); 296PInvokeCore.GlobalUnlock((HGLOBAL)medium.unionmember); 438if (medium.unionmember == IntPtr.Zero) 443void* basePtr = PInvokeCore.GlobalLock((HGLOBAL)medium.unionmember); 446PInvokeCore.GlobalFree((HGLOBAL)medium.unionmember); 455PInvokeCore.GlobalUnlock((HGLOBAL)medium.unionmember);
System.Windows.Forms.Primitives (1)
Windows\Win32\System\Com\STGMEDIUM.cs (1)
23hGlobal = (HGLOBAL)comTypeStg.unionmember
System.Windows.Forms.Tests (8)
System\Windows\Forms\ClipboardTests.cs (1)
1027HGLOBAL hglobal = (HGLOBAL)medium.unionmember;
System\Windows\Forms\DataObjectTests.cs (4)
2403sbyte* pChar = *(sbyte**)stgMedium.unionmember; 2446char* pChar = *(char**)stgMedium.unionmember; 2526DROPFILES* pDropFiles = *(DROPFILES**)stgMedium.unionmember; 2567DROPFILES* pDropFiles = *(DROPFILES**)stgMedium.unionmember;
System\Windows\Forms\DragDropFormatTests.cs (3)
43SaveInDragLoopToHandle((HGLOBAL)medium.unionmember, inDragLoop: true); 110Assert.NotEqual(medium.unionmember, data.hGlobal); 118Assert.Equal(medium.unionmember, (nint)data.hGlobal);