18 references to IntSafeNativeMethods
System.Windows.Forms (18)
misc\GDI\SafeNativeMethods.cs (4)
65
IntPtr hBrush = System.Internal.HandleCollector.Add(IntCreateSolidBrush(crColor),
IntSafeNativeMethods
.CommonHandles.GDI);
79
IntPtr hPen = System.Internal.HandleCollector.Add(IntCreatePen(fnStyle, nWidth, crColor),
IntSafeNativeMethods
.CommonHandles.GDI);
91
IntPtr hPen = System.Internal.HandleCollector.Add(IntExtCreatePen(fnStyle, dwWidth, lplb, dwStyleCount, lpStyle),
IntSafeNativeMethods
.CommonHandles.GDI);
105
IntPtr hRgn = System.Internal.HandleCollector.Add(IntCreateRectRgn(x1, y1, x2, y2),
IntSafeNativeMethods
.CommonHandles.GDI);
misc\GDI\UnsafeNativeMethods.cs (9)
43
IntPtr hdc = System.Internal.HandleCollector.Add(IntGetDC(hWnd),
IntSafeNativeMethods
.CommonHandles.HDC);
56
System.Internal.HandleCollector.Remove((IntPtr)hDC,
IntSafeNativeMethods
.CommonHandles.GDI);
62
System.Internal.HandleCollector.Remove((IntPtr)hDC,
IntSafeNativeMethods
.CommonHandles.HDC);
72
System.Internal.HandleCollector.Remove((IntPtr)hDC,
IntSafeNativeMethods
.CommonHandles.HDC);
86
IntPtr hdc = System.Internal.HandleCollector.Add(IntCreateDC(lpszDriverName, lpszDeviceName, lpszOutput, lpInitData),
IntSafeNativeMethods
.CommonHandles.HDC);
100
IntPtr hdc = System.Internal.HandleCollector.Add(IntCreateIC(lpszDriverName, lpszDeviceName, lpszOutput, lpInitData),
IntSafeNativeMethods
.CommonHandles.HDC);
116
IntPtr compatibleDc = System.Internal.HandleCollector.Add(IntCreateCompatibleDC(hDC),
IntSafeNativeMethods
.CommonHandles.GDI);
242
IntPtr hFont = System.Internal.HandleCollector.Add(IntCreateFontIndirect(lf),
IntSafeNativeMethods
.CommonHandles.GDI);
253
System.Internal.HandleCollector.Remove((IntPtr)hObject,
IntSafeNativeMethods
.CommonHandles.GDI);
misc\GDI\WindowsPen.cs (2)
121
this.nativeHandle =
IntSafeNativeMethods
.CreatePen((int) this.style, this.width, ColorTranslator.ToWin32(this.color) );
132
this.nativeHandle =
IntSafeNativeMethods
.ExtCreatePen((int)this.style, this.width, lb, 0, null );
misc\GDI\WindowsRegion.cs (2)
83
System.Internal.HandleCollector.Add(hRegion,
IntSafeNativeMethods
.CommonHandles.GDI);
135
this.nativeHandle =
IntSafeNativeMethods
.CreateRectRgn(rect.X, rect.Y, rect.X+rect.Width, rect.Y+rect.Height);
misc\GDI\WindowsSolidBrush.cs (1)
35
IntPtr nativeHandle =
IntSafeNativeMethods
.CreateSolidBrush(ColorTranslator.ToWin32( this.Color));