简体   繁体   English

如何删除 Windows 10 版本 1809 剪贴板历史记录?

[英]How to delete Windows 10 version 1809 Clipboard history?

If I enable Clipboard History on Windows 10 version 1809, it will then start collecting all copied items so they can be available via WinKey + V shortcut:如果我在 Windows 10 版本 1809 上启用剪贴板历史记录,它将开始收集所有复制的项目,以便它们可以通过WinKey + V快捷方式使用:

图片

How can I delete all those items programmatically?如何以编程方式删除所有这些项目?

PS.附注。 Calling EmptyClipboard doesn't seem to affect it.调用EmptyClipboard似乎不会影响它。

I tried it C. Here is the code......我试过了 C. 这是代码......

#include <stdio.h>
#include <time.h>
#include <windows.h>
int main(){
unsigned int x = clock();
printf("clearing....");
while (x <= 40000){
x = clock();
OpenClipboard(0);
EmptyClipboard();
CloseClipboard();
    }
}

It runs for 40 sec and then stop automatically then all the clipboard history will delete.它运行 40 秒,然后自动停止,然后所有剪贴板历史记录将被删除。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM