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