84 references to IntUnsafeNativeMethods
System.Windows.Forms (84)
misc\GDI\DeviceContext.cs (23)
181
hCurrentPen = hInitialPen =
IntUnsafeNativeMethods
.GetCurrentObject(new HandleRef(this, hDC), IntNativeMethods.OBJ_PEN);
182
hCurrentBrush = hInitialBrush =
IntUnsafeNativeMethods
.GetCurrentObject(new HandleRef(this, hDC), IntNativeMethods.OBJ_BRUSH);
183
hCurrentBmp = hInitialBmp =
IntUnsafeNativeMethods
.GetCurrentObject(new HandleRef(this, hDC), IntNativeMethods.OBJ_BITMAP);
184
hCurrentFont = hInitialFont =
IntUnsafeNativeMethods
.GetCurrentObject(new HandleRef(this, hDC), IntNativeMethods.OBJ_FONT);
194
IntPtr currentPen =
IntUnsafeNativeMethods
.SelectObject(new HandleRef(this, this.Hdc), new HandleRef( this, hInitialPen));
202
IntPtr currentBrush =
IntUnsafeNativeMethods
.SelectObject(new HandleRef(this, this.Hdc), new HandleRef( this, hInitialBrush));
210
IntPtr currentBmp =
IntUnsafeNativeMethods
.SelectObject(new HandleRef(this, this.Hdc), new HandleRef( this, hInitialBmp));
218
IntUnsafeNativeMethods
.DeleteObject(new HandleRef(this, handleToDelete));
257
this.hWnd =
IntUnsafeNativeMethods
.WindowFromDC( new HandleRef( this, this.hDC) );
279
IntPtr hdc =
IntUnsafeNativeMethods
.CreateDC(driverName, deviceName, fileName, devMode);
292
IntPtr hdc =
IntUnsafeNativeMethods
.CreateIC(driverName, deviceName, fileName, devMode);
310
IntPtr compatibleDc =
IntUnsafeNativeMethods
.CreateCompatibleDC( new HandleRef(null, hdc) );
386
IntUnsafeNativeMethods
.DeleteHDC(new HandleRef(this, this.hDC));
398
IntUnsafeNativeMethods
.DeleteDC(new HandleRef(this, this.hDC));
437
this.hDC =
IntUnsafeNativeMethods
.GetDC(new HandleRef(this, this.hWnd));
459
IntUnsafeNativeMethods
.ReleaseDC(new HandleRef(this, this.hWnd), new HandleRef(this, this.hDC));
479
return (DeviceContextGraphicsMode)
IntUnsafeNativeMethods
.GetGraphicsMode( new HandleRef( this, this.Hdc ) );
496
return (DeviceContextGraphicsMode)
IntUnsafeNativeMethods
.SetGraphicsMode( new HandleRef( this, this.Hdc ), unchecked((int) newMode));
516
IntUnsafeNativeMethods
.RestoreDC(new HandleRef(this, this.hDC), -1);
568
int state =
IntUnsafeNativeMethods
.SaveDC(hdc);
608
IntUnsafeNativeMethods
.SelectClipRgn(hdc, hRegion);
626
int result =
IntUnsafeNativeMethods
.GetClipRgn(new HandleRef( this, this.Hdc), new HandleRef(clip, clip.HRegion));
649
IntUnsafeNativeMethods
.OffsetViewportOrgEx( new HandleRef( this, this.Hdc ), dx, dy, orgn );
misc\GDI\DeviceContext2.cs (21)
66
return ColorTranslator.FromWin32(
IntUnsafeNativeMethods
.GetBkColor( new HandleRef( this, this.Hdc )));
81
return ColorTranslator.FromWin32(
IntUnsafeNativeMethods
.SetBkColor( new HandleRef( this, this.Hdc ), ColorTranslator.ToWin32(newColor)));
91
return (DeviceContextBackgroundMode)
IntUnsafeNativeMethods
.GetBkMode( new HandleRef( this, this.Hdc ) );
106
return (DeviceContextBackgroundMode)
IntUnsafeNativeMethods
.SetBkMode(new HandleRef(this, this.Hdc), (int) newMode);
117
return (DeviceContextBinaryRasterOperationFlags)
IntUnsafeNativeMethods
.GetROP2( new HandleRef( this, this.Hdc ) );
135
return (DeviceContextBinaryRasterOperationFlags)
IntUnsafeNativeMethods
.SetROP2(new HandleRef(this, this.Hdc), (int) rasterOperation);
239
IntPtr hCurrentFont =
IntUnsafeNativeMethods
.GetCurrentObject(new HandleRef(this, hDC), IntNativeMethods.OBJ_FONT);
242
IntUnsafeNativeMethods
.SelectObject(new HandleRef(this, this.Hdc), new HandleRef( null, hInitialFont));
313
IntUnsafeNativeMethods
.SelectObject(new HandleRef(this, this.Hdc), new HandleRef( null, hInitialFont ));
323
return
IntUnsafeNativeMethods
.GetDeviceCaps( new HandleRef( this, this.Hdc ), (int) capabilityIndex );
333
return (DeviceContextMapMode)
IntUnsafeNativeMethods
.GetMapMode( new HandleRef( this, this.Hdc ) );
363
return (DeviceContextMapMode)
IntUnsafeNativeMethods
.SetMapMode( new HandleRef(this, this.Hdc), (int) newMode );
383
return
IntUnsafeNativeMethods
.SelectObject(new HandleRef(this, this.Hdc), new HandleRef( null, hObj));
393
return (DeviceContextTextAlignment)
IntUnsafeNativeMethods
.GetTextAlign( new HandleRef( this, this.Hdc ) );
408
return (DeviceContextTextAlignment)
IntUnsafeNativeMethods
.SetTextAlign(new HandleRef(this, this.Hdc), (int) newAligment );
419
return ColorTranslator.FromWin32(
IntUnsafeNativeMethods
.GetTextColor( new HandleRef( this, this.Hdc ) ));
434
return ColorTranslator.FromWin32(
IntUnsafeNativeMethods
.SetTextColor(new HandleRef( this, this.Hdc), ColorTranslator.ToWin32(newColor)));
445
IntUnsafeNativeMethods
.GetViewportExtEx( new HandleRef( this, this.Hdc ), size );
462
IntUnsafeNativeMethods
.SetViewportExtEx( new HandleRef( this, this.Hdc ), newExtent.Width, newExtent.Height, oldExtent );
475
IntUnsafeNativeMethods
.GetViewportOrgEx( new HandleRef( this, this.Hdc ), point );
491
IntUnsafeNativeMethods
.SetViewportOrgEx( new HandleRef( this, this.Hdc ), newOrigin.X, newOrigin.Y, oldOrigin );
misc\GDI\UnsafeNativeMethods.cs (8)
387
int byteCount =
IntUnsafeNativeMethods
.WideCharToMultiByte( IntNativeMethods.CP_ACP, 0, text, text.Length, null, 0, IntPtr.Zero, IntPtr.Zero );
389
IntUnsafeNativeMethods
.WideCharToMultiByte( IntNativeMethods.CP_ACP, 0, text, text.Length, textBytes, textBytes.Length, IntPtr.Zero, IntPtr.Zero );
426
int byteCount =
IntUnsafeNativeMethods
.WideCharToMultiByte(IntNativeMethods.CP_ACP, 0, text, text.Length, null, 0, IntPtr.Zero, IntPtr.Zero);
428
IntUnsafeNativeMethods
.WideCharToMultiByte(IntNativeMethods.CP_ACP, 0, text, text.Length, textBytes, textBytes.Length, IntPtr.Zero, IntPtr.Zero);
461
byteCount =
IntUnsafeNativeMethods
.WideCharToMultiByte(IntNativeMethods.CP_ACP, 0, text, text.Length, null, 0, IntPtr.Zero, IntPtr.Zero);
463
IntUnsafeNativeMethods
.WideCharToMultiByte(IntNativeMethods.CP_ACP, 0, text, text.Length, textBytes, textBytes.Length, IntPtr.Zero, IntPtr.Zero);
603
retVal =
IntUnsafeNativeMethods
.GetTextMetricsA(hDC, ref lptmA);
629
retVal =
IntUnsafeNativeMethods
.GetTextMetricsW(hDC, ref lptm);
misc\GDI\WindowsFont.cs (6)
73
this.hFont =
IntUnsafeNativeMethods
.CreateFontIndirect(this.logFont);
83
this.hFont =
IntUnsafeNativeMethods
.CreateFontIndirect(this.logFont);
93
IntUnsafeNativeMethods
.GetObject(new HandleRef(this, this.hFont), this.logFont);
255
IntPtr hFont =
IntUnsafeNativeMethods
.GetCurrentObject(new HandleRef(null, hdc), IntNativeMethods.OBJ_FONT);
282
IntUnsafeNativeMethods
.GetObject(new HandleRef(null, hFont), lf);
317
IntUnsafeNativeMethods
.DeleteObject(new HandleRef(this, this.hFont));
misc\GDI\WindowsGraphics2.cs (23)
83
IntUnsafeNativeMethods
.SelectObject(hdc, new HandleRef(pen, pen.HPen));
94
IntUnsafeNativeMethods
.BeginPath(hdc);
95
IntUnsafeNativeMethods
.MoveToEx(hdc, p.X, p.Y, null);
96
IntUnsafeNativeMethods
.AngleArc(hdc, p.X, p.Y, radius, startAngle, sweepAngle);
97
IntUnsafeNativeMethods
.LineTo(hdc, p.X, p.Y);
98
IntUnsafeNativeMethods
.EndPath(hdc);
99
IntUnsafeNativeMethods
.StrokePath(hdc);
113
IntUnsafeNativeMethods
.SelectObject(hdc, new HandleRef(pen, pen.HPen));
118
IntUnsafeNativeMethods
.SelectObject(hdc, new HandleRef(brush, brush.HBrush));
122
IntUnsafeNativeMethods
.Ellipse(hdc, nLeftRect, nTopRect, nRightRect, nBottomRect);
261
IntUnsafeNativeMethods
.DrawTextEx(hdc, text, ref rect, (int) flags, dtparams);
299
int colorResult =
IntUnsafeNativeMethods
.GetNearestColor(hdc, ColorTranslator.ToWin32(color));
392
IntUnsafeNativeMethods
.GetTextExtentPoint32(hdc, text, size);
512
IntUnsafeNativeMethods
.DrawTextEx(hdc, text, ref rect, (int)flags, dtparams);
553
int textHeight =
IntUnsafeNativeMethods
.DrawTextEx(hdc, text, ref rect, (int) flags, dtparams);
602
IntUnsafeNativeMethods
.SelectObject(hdc, new HandleRef(null,
IntUnsafeNativeMethods
.GetStockObject(IntNativeMethods.HOLLOW_BRUSH)));
605
IntUnsafeNativeMethods
.Rectangle(hdc, x, y, x + width , y + height );
638
IntUnsafeNativeMethods
.FillRect(hdc, ref rect, new HandleRef(brush, hBrush));
680
IntUnsafeNativeMethods
.MoveToEx(hdc, x1, y1, oldPoint);
681
IntUnsafeNativeMethods
.LineTo(hdc, x2, y2);
693
IntUnsafeNativeMethods
.MoveToEx(hdc, oldPoint.x, oldPoint.y, null);
724
IntUnsafeNativeMethods
.GetTextMetrics(hdc, ref tm);
misc\GDI\WindowsRegion.cs (3)
126
return
IntUnsafeNativeMethods
.CombineRgn(new HandleRef(this, this.HRegion), new HandleRef(region1, region1.HRegion), new HandleRef(region2, region2.HRegion), mode);
152
IntUnsafeNativeMethods
.DeleteObject(new HandleRef(this, this.nativeHandle));
195
IntUnsafeNativeMethods
.GetRgnBox(new HandleRef(this, this.nativeHandle), ref rect);