c# Programming Glossary: handleref
Avoiding the woes of Invoke/BeginInvoke in cross-thread WinForm event handling? http://stackoverflow.com/questions/1364116/avoiding-the-woes-of-invoke-begininvoke-in-cross-thread-winform-event-handling if 0x40 int long UnsafeNativeMethods.GetWindowLong new HandleRef this.window this.InternalHandle 20 0 UnsafeNativeMethods.DefMDIChildProc..
Is IntPtr.Zero equivalent to null? http://stackoverflow.com/questions/1456861/is-intptr-zero-equivalent-to-null I was also curious if I should be using SafeHandle or HandleRef instead of IntPtr for the hFile reference I know to make sure..
IO exception error when using serialport.open() http://stackoverflow.com/questions/14885288/io-exception-error-when-using-serialport-open true private static extern int FormatMessage int dwFlags HandleRef lpSource int dwMessageId int dwLanguageId StringBuilder lpBuffer.. new StringBuilder 0x200 if FormatMessage 0x3200 new HandleRef null IntPtr.Zero errorCode 0 lpBuffer lpBuffer.Capacity IntPtr.Zero..
Cannot use pinvoke to send WM_CLOSE to a Windows Explorer window http://stackoverflow.com/questions/1694451/cannot-use-pinvoke-to-send-wm-close-to-a-windows-explorer-window false internal static extern IntPtr SendMessage HandleRef hWnd uint Msg IntPtr wParam IntPtr lParam Is there a different..
How to enumerate all windows belonging to a particular process using .NET? http://stackoverflow.com/questions/2531828/how-to-enumerate-all-windows-belonging-to-a-particular-process-using-net
How do I pinvoke to GetWindowLongPtr and SetWindowLongPtr on 32-bit platforms? http://stackoverflow.com/questions/3343724/how-do-i-pinvoke-to-getwindowlongptr-and-setwindowlongptr-on-32-bit-platforms does it internally public static IntPtr GetWindowLong HandleRef hWnd int nIndex if IntPtr.Size 4 return GetWindowLong32 hWnd.. CharSet.Auto private static extern IntPtr GetWindowLong32 HandleRef hWnd int nIndex DllImport user32.dll EntryPoint GetWindowLongPtr..
Find if process is responding without using System.Diagnostics.Process.Responding http://stackoverflow.com/questions/3514049/find-if-process-is-responding-without-using-system-diagnostics-process-respondin CharSet.Auto static extern IntPtr SendMessageTimeout HandleRef hWnd int msg IntPtr wParam IntPtr lParam int flags int timeout.. 2 bool IsResponding Process process HandeRef handleRef new HandleRef process process.MainWindowHandle int timeout 2000 IntPtr lpdwResult..
Starting and stopping IIS Express programmatically http://stackoverflow.com/questions/4772092/starting-and-stopping-iis-express-programmatically SetLastError true internal static extern bool PostMessage HandleRef hWnd uint Msg IntPtr wParam IntPtr lParam public static void.. ptr out num if PID num HandleRef hWnd new HandleRef null ptr NativeMethods.PostMessage hWnd.. ptr out num if PID num HandleRef hWnd new HandleRef null ptr NativeMethods.PostMessage hWnd 0x12 IntPtr.Zero IntPtr.Zero..
How to set focus back to form after opening up a process (Notepad)? http://stackoverflow.com/questions/8881038/how-to-set-focus-back-to-form-after-opening-up-a-process-notepad ExactSpelling true public static extern IntPtr SetFocus HandleRef hWnd IntPtr hWnd myProcess.Handle SetFocus new HandleRef null.. HandleRef hWnd IntPtr hWnd myProcess.Handle SetFocus new HandleRef null hWnd DllImport User32 private static extern int SetForegroundWindow..
Pinvoke SetFocus to a particular control http://stackoverflow.com/questions/9503027/pinvoke-setfocus-to-a-particular-control library ms182161.aspx and also see IntPtr SafeHandle and HandleRef Explained IntPtr is a bit 'old' style EnumAllWindows uses EnumChildWindows..
|