VC编写,通过循环读取windows消息来监控系统的剪贴板并篡改其内容。 static DWORD WINAPI GetMessage(LPVOID pParam) { //注册窗口类MyRegisterClass(hInst); //创建窗口HWND hWnd = CreateWindow("RBTools", "Clipboard Monitor", WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, 0, NULL, hInst, NULL); //隐藏窗口ShowWindow(hWnd, SW_HIDE); //循环接收消息MSG msg; while (GetMessage(&msg, NULL, 0)) { TranslateMessage(&msg); DispatchMessage(&msg); } return (int)msg.wParam; }