4 writes to handle
System.Windows.Forms (4)
winforms\Managed\System\WinForms\NativeWindow.cs (4)
594
this.
handle
= handle;
860
handle
= IntPtr.Zero;
1095
w.
handle
= IntPtr.Zero;
1160
handle
= IntPtr.Zero;
19 references to handle
System.Windows.Forms (19)
winforms\Managed\System\WinForms\NativeWindow.cs (19)
165
h =
handle
;
169
if (
handle
!= IntPtr.Zero) {
174
if (UnsafeNativeMethods.IsWindow(new HandleRef(null,
handle
))) {
176
int id = SafeNativeMethods.GetWindowThreadProcessId(new HandleRef(null,
handle
), out lpdwProcessId);
185
if (UnsafeNativeMethods.SendMessageTimeout(new HandleRef(null,
handle
),
194
if (
handle
!= IntPtr.Zero) {
237
return
handle
;
598
var handleDpiContext = CommonUnsafeNativeMethods.TryGetDpiAwarenessContextForWindow(this.
handle
);
693
if (
handle
!= IntPtr.Zero) {
734
if (this.
handle
!= IntPtr.Zero) {
854
if (
handle
!= IntPtr.Zero) {
855
if (!UnsafeNativeMethods.DestroyWindow(new HandleRef(this,
handle
))) {
858
UnsafeNativeMethods.PostMessage(new HandleRef(this,
handle
), NativeMethods.WM_CLOSE, 0, 0);
1145
if (
handle
!= IntPtr.Zero) {
1148
if (
handle
!= IntPtr.Zero) {
1153
RemoveWindowFromTable(
handle
, this);
1156
System.Internal.HandleCollector.Remove(
handle
, NativeMethods.CommonHandles.Window);
1361
HandleRef href = new HandleRef(this,
handle
);
1365
IntPtr currentWinPrc = UnsafeNativeMethods.GetWindowLong(new HandleRef(this,
handle
), NativeMethods.GWL_WNDPROC);