50 references to NullHandleRef
System.Drawing (50)
commonui\System\Drawing\Advanced\Font.cs (10)
410IntPtr screenDC = UnsafeNativeMethods.GetDC(NativeMethods.NullHandleRef); 415UnsafeNativeMethods.ReleaseDC(NativeMethods.NullHandleRef, new HandleRef(null, screenDC)); 429IntPtr screenDC = UnsafeNativeMethods.GetDC(NativeMethods.NullHandleRef); 435UnsafeNativeMethods.ReleaseDC(NativeMethods.NullHandleRef, new HandleRef(null, screenDC)); 803IntPtr screenDC = UnsafeNativeMethods.GetDC(NativeMethods.NullHandleRef); 815UnsafeNativeMethods.ReleaseDC(NativeMethods.NullHandleRef, new HandleRef(null, screenDC)); 932IntPtr screenDC = UnsafeNativeMethods.GetDC(NativeMethods.NullHandleRef); 940UnsafeNativeMethods.ReleaseDC(NativeMethods.NullHandleRef, new HandleRef(null, screenDC)); 1001IntPtr screenDC = UnsafeNativeMethods.GetDC(NativeMethods.NullHandleRef); 1013UnsafeNativeMethods.ReleaseDC(NativeMethods.NullHandleRef, new HandleRef(null, screenDC));
commonui\System\Drawing\Advanced\ImageAttributes.cs (1)
665NativeMethods.NullHandleRef);
commonui\System\Drawing\Advanced\Metafile.cs (6)
174NativeMethods.NullHandleRef, 305NativeMethods.NullHandleRef, 365NativeMethods.NullHandleRef, 527NativeMethods.NullHandleRef, 589NativeMethods.NullHandleRef, 727NativeMethods.NullHandleRef,
commonui\System\Drawing\Bitmap.cs (1)
264int status = SafeNativeMethods.Gdip.GdipCreateBitmapFromScan0(width, height, 0, unchecked((int) format), NativeMethods.NullHandleRef, out bitmap);
commonui\System\Drawing\Graphics.cs (6)
3063NativeMethods.NullHandleRef, 3065NativeMethods.NullHandleRef 3097NativeMethods.NullHandleRef, 3099NativeMethods.NullHandleRef); 3135NativeMethods.NullHandleRef, 3137NativeMethods.NullHandleRef);
commonui\System\Drawing\Icon.cs (4)
281IntPtr hIcon = SafeNativeMethods.ExtractAssociatedIcon(NativeMethods.NullHandleRef, sb, ref index); 483NativeMethods.NullHandleRef, 628IntPtr dc = UnsafeNativeMethods.GetDC(NativeMethods.NullHandleRef); 631UnsafeNativeMethods.ReleaseDC(NativeMethods.NullHandleRef, new HandleRef(null, dc));
commonui\System\Drawing\Printing\PageSettings.cs (2)
419int retCode = SafeNativeMethods.DocumentProperties(NativeMethods.NullHandleRef, NativeMethods.NullHandleRef, printerSettings.PrinterName, modePointer, modePointer, SafeNativeMethods.DM_IN_BUFFER | SafeNativeMethods.DM_OUT_BUFFER);
commonui\System\Drawing\Printing\PrinterSettings.cs (8)
1006int modeSize = SafeNativeMethods.DocumentProperties(NativeMethods.NullHandleRef, NativeMethods.NullHandleRef, printer, IntPtr.Zero, NativeMethods.NullHandleRef, 0); 1018int returnCode = SafeNativeMethods.DocumentProperties(NativeMethods.NullHandleRef, NativeMethods.NullHandleRef, printer, pointer, NativeMethods.NullHandleRef, SafeNativeMethods.DM_OUT_BUFFER); 1053int retCode = SafeNativeMethods.DocumentProperties(NativeMethods.NullHandleRef, NativeMethods.NullHandleRef, printer, pointer, pointer, SafeNativeMethods.DM_IN_BUFFER | SafeNativeMethods.DM_OUT_BUFFER);
commonui\System\Drawing\SystemIcons.cs (10)
46_application = new Icon( SafeNativeMethods.LoadIcon( NativeMethods.NullHandleRef, SafeNativeMethods.IDI_APPLICATION )); 60_asterisk = new Icon( SafeNativeMethods.LoadIcon( NativeMethods.NullHandleRef, SafeNativeMethods.IDI_ASTERISK )); 74_error = new Icon( SafeNativeMethods.LoadIcon( NativeMethods.NullHandleRef, SafeNativeMethods.IDI_ERROR )); 88_exclamation = new Icon( SafeNativeMethods.LoadIcon( NativeMethods.NullHandleRef, SafeNativeMethods.IDI_EXCLAMATION )); 102_hand = new Icon( SafeNativeMethods.LoadIcon( NativeMethods.NullHandleRef, SafeNativeMethods.IDI_HAND )); 116_information = new Icon( SafeNativeMethods.LoadIcon( NativeMethods.NullHandleRef, SafeNativeMethods.IDI_INFORMATION )); 130_question = new Icon( SafeNativeMethods.LoadIcon( NativeMethods.NullHandleRef, SafeNativeMethods.IDI_QUESTION )); 144_warning = new Icon( SafeNativeMethods.LoadIcon( NativeMethods.NullHandleRef, SafeNativeMethods.IDI_WARNING )); 158_winlogo = new Icon( SafeNativeMethods.LoadIcon( NativeMethods.NullHandleRef, SafeNativeMethods.IDI_WINLOGO )); 178int result = SafeNativeMethods.LoadIconWithScaleDown( NativeMethods.NullHandleRef, SafeNativeMethods.IDI_SHIELD, 32, 32, ref hIcon );
misc\DpiHelper.cs (2)
108IntPtr hDC = UnsafeNativeMethods.GetDC(NativeMethods.NullHandleRef); 113UnsafeNativeMethods.ReleaseDC(NativeMethods.NullHandleRef, new HandleRef(null, hDC));