35 references to IntUnsafeNativeMethods
System.Drawing (35)
commonui\System\Drawing\Advanced\Font.cs (1)
896
IntPtr handle =
IntUnsafeNativeMethods
.IntCreateFontIndirect(lf);
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\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\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);