剪贴板大小限制 [英] Clipboard size limit

查看:186
本文介绍了剪贴板大小限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以复制到剪贴板的数据大小是否有限制?我正在使用VB6,需要将数据块复制到剪贴板。

Is there any limit of the size of data that can be copied to clipboard? I am using VB6 and need to copy blocks of data to the clipboard.

推荐答案

应用程序调用 GlobalAlloc( GMEM_MOVEABLE或GMEM_DDESHARE)来分配要存储在剪贴板上的数据的内存,并使其可用于其他应用程序。对于32位应用程序, GlobalAlloc 最多可以分配2 GB的块或PC拥有的虚拟内存量(以较小者为准)。 Windows剪贴板没有施加任何其他大小限制。

Applications call GlobalAlloc(GMEM_MOVEABLE or GMEM_DDESHARE) to allocate the memory for data to be stored on the clipboard and make it available to other applications. For 32-bit applications GlobalAlloc can allocate blocks up to 2 GB in size or up to the amount of virtual memory the PC has, whichever is less. The Windows clipboard does not impose any other size limits.

这篇关于剪贴板大小限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆