29 references to Medium
System.Private.Windows.Core (2)
System\Private\Windows\Ole\DragDropHelper.cs (2)
134void* basePtr = PInvokeCore.GlobalLock(dragDropFormat.Medium.hGlobal); 139PInvokeCore.GlobalUnlock(dragDropFormat.Medium.hGlobal);
System.Windows.Forms.Tests (27)
System\Windows\Forms\DragDropFormatTests.cs (12)
76int handleSize = (int)PInvokeCore.GlobalSize(dragDropFormat.Medium.hGlobal); 78Assert.Equal(nint.Zero, (nint)dragDropFormat.Medium.pUnkForRelease); 79Assert.Equal(Com.TYMED.TYMED_NULL, dragDropFormat.Medium.tymed); 80Assert.True(dragDropFormat.Medium.hGlobal.IsNull); 138pUnkForRelease = dragDropFormat.Medium.pUnkForRelease, 139tymed = dragDropFormat.Medium.tymed, 142hGlobal = dragDropFormat.Medium.tymed switch 146(HANDLE)(nint)dragDropFormat.Medium.hGlobal, 149_ => dragDropFormat.Medium.hGlobal, 157switch (dragDropFormat.Medium.tymed) 165Assert.NotEqual(dragDropFormat.Medium.u, data.u); 173Assert.Equal(dragDropFormat.Medium.u, data.u);
System\Windows\Forms\DragDropHelperTests.cs (15)
121void* basePtr = PInvokeCore.GlobalLock(dragDropFormat.Medium.hGlobal); 126PInvokeCore.GlobalUnlock(dragDropFormat.Medium.hGlobal); 148void* basePtr = PInvokeCore.GlobalLock(dragDropFormat.Medium.hGlobal); 153PInvokeCore.GlobalUnlock(dragDropFormat.Medium.hGlobal); 217void* basePtr = PInvokeCore.GlobalLock(dragDropFormat.Medium.hGlobal); 222PInvokeCore.GlobalUnlock(dragDropFormat.Medium.hGlobal); 283Assert.Equal(nint.Zero, (nint)dragDropFormat.Medium.pUnkForRelease); 284Assert.Equal(Com.TYMED.TYMED_NULL, dragDropFormat.Medium.tymed); 285Assert.Equal(nint.Zero, (nint)dragDropFormat.Medium.hGlobal); 298void* basePtr = PInvokeCore.GlobalLock(dragDropFormat.Medium.hGlobal); 303PInvokeCore.GlobalUnlock(dragDropFormat.Medium.hGlobal); 325void* basePtr = PInvokeCore.GlobalLock(dragDropFormat.Medium.hGlobal); 330PInvokeCore.GlobalUnlock(dragDropFormat.Medium.hGlobal); 356void* basePtr = PInvokeCore.GlobalLock(dragDropFormat.Medium.hGlobal); 358PInvokeCore.GlobalUnlock(dragDropFormat.Medium.hGlobal);