Clipboard size limit

前端 未结 3 1359
情书的邮戳
情书的邮戳 2020-12-05 12:52

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.

相关标签:
3条回答
  • 2020-12-05 13:20

    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.

    0 讨论(0)
  • 2020-12-05 13:27

    Most data is copied as a reference rather than the data itself so you can copy most anything any size. Text though is actually copied and from what I know the amount of data is limited to how much ram is currently availiable. Remember this, if vb6 can handle it, I'm sure the clipboard can handle it.

    0 讨论(0)
  • 2020-12-05 13:31

    Depends on the amount of memory in the system.

    0 讨论(0)
提交回复
热议问题