예제 #1
0
 public IntPtr SendMessage(IntPtr hwnd, UInt32 msg, IntPtr wParam, IntPtr lParam)
 {
     if (hwnd != IntPtr.Zero)
     {
         return(Win32Helpers.SendMessage(hwnd, msg, wParam, lParam));
     }
     else
     {
         return(IntPtr.Zero);
     }
 }
예제 #2
0
        public IntPtr SendMessage(UInt32 msg, IntPtr wParam, StringBuilder lParam)
        {
            IntPtr hwnd = Handle;

            if (hwnd != IntPtr.Zero)
            {
                return(Win32Helpers.SendMessage(hwnd, msg, wParam, lParam));
            }
            else
            {
                return(IntPtr.Zero);
            }
        }