private void HandleCopyData(ref Message m) { var hWnd = m.WParam; var copyData = Marshal.PtrToStructure <CopyData>(m.LParam); _debugger.ReceiveData(hWnd, copyData.dwData, copyData.cbData, copyData.lpData); //var bytes = new byte[copyData.cbData]; //Marshal.Copy(copyData.lpData, bytes, 0, bytes.Length); //using var stream = new MemoryStream(bytes, false); //_debugger.ReceiveData(hWnd, copyData.dwData, stream); }