13 references to UnsafeNativeMethods
WindowsFormsIntegration (13)
MS\Win32\DCSafeHandle.cs (1)
15return UnsafeNativeMethods.DeleteDC(handle);
System\Windows\Integration\ApplicationInterop.cs (2)
133UnsafeNativeMethods.TranslateMessage(ref msg); 134UnsafeNativeMethods.DispatchMessage(ref msg);
System\Windows\Integration\ElementHost.cs (3)
225IntPtr focusHandle = UnsafeNativeMethods.GetFocus(); 611UnsafeNativeMethods.SendMessage(new HandleRef(this, this.Handle), msg, wParam, lParam); 762UnsafeNativeMethods.SendMessage(new HandleRef(this, this.Handle), msg, wParam, lParam);
System\Windows\Integration\HostUtils.cs (2)
380using (DCSafeHandle screenDC = UnsafeNativeMethods.CreateDC(DISPLAY)) 383UnsafeNativeMethods.GetDeviceCaps(screenDC, nIndex);
System\Windows\Integration\WindowsFormsHost.cs (5)
501UnsafeNativeMethods.SetParent(/* child = */ HostContainerInternal.Handle, /* parent = */ _hwndParent.Handle); 768IntPtr focusHwnd = UnsafeNativeMethods.GetFocus(); 777UnsafeNativeMethods.IsChild(Handle, _prevFocusHwnd) && 778!UnsafeNativeMethods.IsChild(Handle, focusHwnd)) 991if (UnsafeNativeMethods.SendMessage(new HandleRef(this, this.Handle),