This is the method definition:
[DllImport("user32.dll")]
public static extern int SendMessage(IntPtr hWnd, int msg, IntPtr lparam, IntPtr wparam);
This is the call to SendMessage:
//WM_COPY = 0x0301
SendMessage(handle, WM_COPY, IntPtr.Zero, IntPtr.Zero);
This is how I am retrieving the data:
string text = System.Windows.Forms.Clipboard.GetText();
I'd like to do the same thing except that I don't want the data to be copied to the clipboard. Is it possible to copy the data to some other part in memory? If so, how?