50 references to NullHandleRef
System.Drawing (50)
commonui\System\Drawing\Advanced\Font.cs (10)
410
IntPtr screenDC = UnsafeNativeMethods.GetDC(NativeMethods.
NullHandleRef
);
415
UnsafeNativeMethods.ReleaseDC(NativeMethods.
NullHandleRef
, new HandleRef(null, screenDC));
429
IntPtr screenDC = UnsafeNativeMethods.GetDC(NativeMethods.
NullHandleRef
);
435
UnsafeNativeMethods.ReleaseDC(NativeMethods.
NullHandleRef
, new HandleRef(null, screenDC));
803
IntPtr screenDC = UnsafeNativeMethods.GetDC(NativeMethods.
NullHandleRef
);
815
UnsafeNativeMethods.ReleaseDC(NativeMethods.
NullHandleRef
, new HandleRef(null, screenDC));
932
IntPtr screenDC = UnsafeNativeMethods.GetDC(NativeMethods.
NullHandleRef
);
940
UnsafeNativeMethods.ReleaseDC(NativeMethods.
NullHandleRef
, new HandleRef(null, screenDC));
1001
IntPtr screenDC = UnsafeNativeMethods.GetDC(NativeMethods.
NullHandleRef
);
1013
UnsafeNativeMethods.ReleaseDC(NativeMethods.
NullHandleRef
, new HandleRef(null, screenDC));
commonui\System\Drawing\Advanced\ImageAttributes.cs (1)
665
NativeMethods.
NullHandleRef
);
commonui\System\Drawing\Advanced\Metafile.cs (6)
174
NativeMethods.
NullHandleRef
,
305
NativeMethods.
NullHandleRef
,
365
NativeMethods.
NullHandleRef
,
527
NativeMethods.
NullHandleRef
,
589
NativeMethods.
NullHandleRef
,
727
NativeMethods.
NullHandleRef
,
commonui\System\Drawing\Bitmap.cs (1)
264
int status = SafeNativeMethods.Gdip.GdipCreateBitmapFromScan0(width, height, 0, unchecked((int) format), NativeMethods.
NullHandleRef
, out bitmap);
commonui\System\Drawing\Graphics.cs (6)
3063
NativeMethods.
NullHandleRef
,
3065
NativeMethods.
NullHandleRef
3097
NativeMethods.
NullHandleRef
,
3099
NativeMethods.
NullHandleRef
);
3135
NativeMethods.
NullHandleRef
,
3137
NativeMethods.
NullHandleRef
);
commonui\System\Drawing\Icon.cs (4)
281
IntPtr hIcon = SafeNativeMethods.ExtractAssociatedIcon(NativeMethods.
NullHandleRef
, sb, ref index);
483
NativeMethods.
NullHandleRef
,
628
IntPtr dc = UnsafeNativeMethods.GetDC(NativeMethods.
NullHandleRef
);
631
UnsafeNativeMethods.ReleaseDC(NativeMethods.
NullHandleRef
, new HandleRef(null, dc));
commonui\System\Drawing\Printing\PageSettings.cs (2)
419
int 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)
1006
int modeSize = SafeNativeMethods.DocumentProperties(NativeMethods.
NullHandleRef
, NativeMethods.
NullHandleRef
, printer, IntPtr.Zero, NativeMethods.
NullHandleRef
, 0);
1018
int returnCode = SafeNativeMethods.DocumentProperties(NativeMethods.
NullHandleRef
, NativeMethods.
NullHandleRef
, printer, pointer, NativeMethods.
NullHandleRef
, SafeNativeMethods.DM_OUT_BUFFER);
1053
int 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 ));
178
int result = SafeNativeMethods.LoadIconWithScaleDown( NativeMethods.
NullHandleRef
, SafeNativeMethods.IDI_SHIELD, 32, 32, ref hIcon );
misc\DpiHelper.cs (2)
108
IntPtr hDC = UnsafeNativeMethods.GetDC(NativeMethods.
NullHandleRef
);
113
UnsafeNativeMethods.ReleaseDC(NativeMethods.
NullHandleRef
, new HandleRef(null, hDC));