发送剪贴板内容 - SendPaste
函数简介
向指定窗口发送粘贴命令,将剪贴板的内容粘贴到目标窗口。
接口名称
SendPaste
DLL调用
int SendPaste(long ola, long hwnd);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| ola | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| hwnd | 长整数型 | 目标窗口的句柄。 |
示例
// 先设置剪贴板内容,再发送粘贴命令
SetClipboard(instance, "Hello World");
int ret = SendPaste(instance, hwnd);
printf("SendPaste ret=%d\n", ret);
返回值
1 成功,0 失败。
