Changeset 97235 in vbox for trunk/src/VBox/HostServices/SharedClipboard
- Timestamp:
- Oct 19, 2022 10:32:23 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-win.cpp
r97215 r97235 76 76 77 77 78 /** @todo Someone please explain the protocol wrt overflows... */ 78 /** 79 * Copy clipboard data into the guest buffer. 80 * 81 * At first attempt, guest will provide a buffer of default size. 82 * Usually 1K or 4K (see platform specific Guest Additions code around 83 * VbglR3ClipboardReadData calls). If this buffer is not big enough 84 * to fit host clipboard content, this function will return VINF_BUFFER_OVERFLOW 85 * and provide guest with host's clipboard buffer actual size. This will be a 86 * signal for the guest to re-read host clipboard data providing bigger buffer 87 * to store it. 88 * 89 * @returns IPRT status code. 90 * @returns VINF_BUFFER_OVERFLOW returned when guest buffer size if not big 91 * enough to store host clipboard data. This is a signal to the guest 92 * to re-issue host clipboard read request with bigger buffer size 93 * (specified in @a pcbActualDst output parameter). 94 * @param pCtx Shared Clipboard context to use. 95 * @param uFmt VBox clipboard format (VBOX_SHCL_FMT_XXX) of copied data. 96 * @param pvSrc Pointer to host clipboard data. 97 * @param cbSrc Size (in bytes) of actual clipboard data to copy. 98 * @param pvDst Pointer to guest buffer to store clipboard data. 99 * @param cbDst Size (in bytes) of guest buffer. 100 * @param pcbActualDst Actual size (in bytes) of host clipboard data. 101 * Only set if guest buffer size if not big enough 102 * to store host clipboard content. When set, 103 * function returns VINF_BUFFER_OVERFLOW. 104 */ 79 105 static int vboxClipboardSvcWinDataGet(uint32_t u32Format, const void *pvSrc, uint32_t cbSrc, 80 106 void *pvDst, uint32_t cbDst, uint32_t *pcbActualDst)
Note:
See TracChangeset
for help on using the changeset viewer.