设置剪贴板 - SetClipboard
函数简介
设置剪贴板的内容
接口名称
SetClipboard
DLL调用
int SetClipboard(long ola, string value)
参数定义:
ola
(长整型数): OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。value
(字符串): 要设置到剪贴板的内容。
示例:
int ret = SetClipboard(ola, "Hello World!");
if (ret == 1) {
printf("Set clipboard content successful\n");
} else {
printf("Set clipboard content failed\n");
}
返回值
整型数:
- 0: 设置失败
- 1: 设置成功