23 references to AssertWin32
System.Drawing (23)
misc\GDI\SafeNativeMethods.cs (1)
66
DbgUtil.
AssertWin32
(hBrush != IntPtr.Zero, "IntCreateSolidBrush(color={0}) failed.", crColor);
misc\GDI\UnsafeNativeMethods.cs (22)
44
DbgUtil.
AssertWin32
(hdc != IntPtr.Zero, "GetHdc([hWnd=0x{0:X8}]) failed.", hWnd);
58
DbgUtil.
AssertWin32
(retVal, "DeleteDC([hdc=0x{0:X8}]) failed.", hDC.Handle);
64
DbgUtil.
AssertWin32
(retVal, "DeleteHDC([hdc=0x{0:X8}]) failed.", hDC.Handle);
117
DbgUtil.
AssertWin32
(compatibleDc != IntPtr.Zero, "CreateCompatibleDC([hdc=0x{0:X8}]) failed", hDC.Handle);
128
DbgUtil.
AssertWin32
(state != 0, "SaveDC([hdc=0x{0:X8}]) failed", hDC.Handle);
169
DbgUtil.
AssertWin32
(iMode != 0, "SetGraphicsMode([hdc=0x{0:X8}], [GM_ADVANCED]) failed.", hDC.Handle);
208
DbgUtil.
AssertWin32
(retVal != -1, "IntGetClipRgn([hdc=0x{0:X8}], [hRgn]) failed.", hDC.Handle);
228
DbgUtil.
AssertWin32
(result != IntNativeMethods.RegionFlags.ERROR, "GetRgnBox([hRegion=0x{0:X8}], [out rect]) failed.", hRgn.Handle);
255
DbgUtil.
AssertWin32
(retVal, "DeleteObject(hObj=[0x{0:X8}]) failed.", hObject.Handle);
265
DbgUtil.
AssertWin32
(retVal != 0, "GetObject(hObj=[0x{0:X8}], [LOGBRUSH]) failed.", hBrush.Handle);
276
DbgUtil.
AssertWin32
(retVal != 0, "GetObject(hObj=[0x{0:X8}], [LOGFONT]) failed.", hFont.Handle);
313
DbgUtil.
AssertWin32
(hGdiObj != IntPtr.Zero, "GetStockObject({0}) failed.", nIndex );
356
DbgUtil.
AssertWin32
(mode != 0, "GetBkMode(hdc=[0x{0:X8}]) failed.", hDC.Handle);
542
DbgUtil.
AssertWin32
(mapMode != 0, "GetMapMode(hdc=[0x{0:X8}]", hDC.Handle);
552
DbgUtil.
AssertWin32
(retVal, "GetViewportExtEx([hdc=0x{0:X8}], [out size]) failed.", hdc.Handle);
562
DbgUtil.
AssertWin32
(retVal, "GetViewportOrgEx([hdc=0x{0:X8}], [out point]) failed.", hdc.Handle);
632
DbgUtil.
AssertWin32
(retVal != 0, "GetTextMetrics(hdc=[0x{0:X8}], [out TEXTMETRIC] failed.", hDC.Handle );
642
DbgUtil.
AssertWin32
(retVal, "BeginPath(hdc=[0x{0:X8}]failed.", hDC.Handle );
652
DbgUtil.
AssertWin32
(retVal, "EndPath(hdc=[0x{0:X8}]failed.", hDC.Handle);
662
DbgUtil.
AssertWin32
(retVal, "StrokePath(hdc=[0x{0:X8}]failed.", hDC.Handle );
672
DbgUtil.
AssertWin32
(retVal, "AngleArc(hdc=[0x{0:X8}], ...) failed.", hDC.Handle);
702
DbgUtil.
AssertWin32
(retVal, "Arc(hdc=[0x{0:X8}], ...) failed.", hDC.Handle);