13 references to UnsafeNativeMethods
WindowsFormsIntegration (13)
MS\Win32\DCSafeHandle.cs (1)
17return UnsafeNativeMethods.DeleteDC(handle);
System\Windows\Integration\ApplicationInterop.cs (2)
135UnsafeNativeMethods.TranslateMessage(ref msg); 136UnsafeNativeMethods.DispatchMessage(ref msg);
System\Windows\Integration\ElementHost.cs (3)
228IntPtr focusHandle = UnsafeNativeMethods.GetFocus(); 614UnsafeNativeMethods.SendMessage(new HandleRef(this, this.Handle), msg, wParam, lParam); 765UnsafeNativeMethods.SendMessage(new HandleRef(this, this.Handle), msg, wParam, lParam);
System\Windows\Integration\HostUtils.cs (2)
384using (DCSafeHandle screenDC = UnsafeNativeMethods.CreateDC(DISPLAY)) 387UnsafeNativeMethods.GetDeviceCaps(screenDC, nIndex);
System\Windows\Integration\WindowsFormsHost.cs (5)
503UnsafeNativeMethods.SetParent(/* child = */ HostContainerInternal.Handle, /* parent = */ _hwndParent.Handle); 770IntPtr focusHwnd = UnsafeNativeMethods.GetFocus(); 779UnsafeNativeMethods.IsChild(Handle, _prevFocusHwnd) && 780!UnsafeNativeMethods.IsChild(Handle, focusHwnd)) 993if (UnsafeNativeMethods.SendMessage(new HandleRef(this, this.Handle),