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