using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices; //1、添加命名空间
namespace Clipboard
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
nextClipboardViewer = (IntPtr)SetClipboardViewer((int)this.Handle);//获得观察链中下一个窗口句柄
}
//
//定义几个方法
//
[DllImport("User32.dll")]
protected static