Changeset 91740 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Oct 14, 2021 7:28:04 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibClipboard.cpp
r91387 r91740 2462 2462 * 2463 2463 * @returns VBox status code. 2464 * @param idClient The client id returned by VbglR3ClipboardConnect(). 2465 * @param fFormat The format of the data. 2466 * @param pv The data. 2467 * @param cb The size of the data. 2464 * @param idClient The client id returned by VbglR3ClipboardConnect(). 2465 * @param fFormat The format of the data. 2466 * @param pvData Pointer to the data to send. Can be NULL if @a cbData 2467 * is zero. 2468 * @param cbData Number of bytes of data to send. Zero is valid. 2468 2469 */ 2469 2470 VBGLR3DECL(int) VbglR3ClipboardWriteData(HGCMCLIENTID idClient, uint32_t fFormat, void *pv, uint32_t cb) … … 2494 2495 * 2495 2496 * @returns VBox status code. 2496 * @param pCtx The command context returned by VbglR3ClipboardConnectEx(). 2497 * @param uFormat Clipboard format to send. 2498 * @param pvData Pointer to data to send. 2499 * @param cbData Size (in bytes) of data to send. 2500 */ 2501 VBGLR3DECL(int) VbglR3ClipboardWriteDataEx(PVBGLR3SHCLCMDCTX pCtx, SHCLFORMAT uFormat, void *pvData, uint32_t cbData) 2502 { 2503 AssertPtrReturn(pCtx, VERR_INVALID_POINTER); 2504 AssertPtrReturn(pvData, VERR_INVALID_POINTER); 2497 * @param pCtx The command context returned by VbglR3ClipboardConnectEx(). 2498 * @param fFormat Clipboard format to send. 2499 * @param pvData Pointer to the data to send. Can be NULL if @a cbData 2500 * is zero. 2501 * @param cbData Number of bytes of data to send. Zero is valid. 2502 */ 2503 VBGLR3DECL(int) VbglR3ClipboardWriteDataEx(PVBGLR3SHCLCMDCTX pCtx, SHCLFORMAT fFormat, void *pvData, uint32_t cbData) 2504 { 2505 LogFlowFunc(("ENTER: fFormat=%#x pvData=%p cbData=%#x\n", fFormat, pvData, cbData)); 2506 AssertPtrReturn(pCtx, VERR_INVALID_POINTER); 2507 if (cbData > 0) 2508 AssertPtrReturn(pvData, VERR_INVALID_POINTER); 2505 2509 2506 2510 int rc; 2507 2508 LogFlowFuncEnter();2509 2510 2511 if (pCtx->fUseLegacyProtocol) 2511 { 2512 rc = VbglR3ClipboardWriteData(pCtx->idClient, uFormat, pvData, cbData); 2513 } 2512 rc = VbglR3ClipboardWriteData(pCtx->idClient, fFormat, pvData, cbData); 2514 2513 else 2515 2514 { … … 2522 2521 VBGL_HGCM_HDR_INIT(&Msg.Hdr, pCtx->idClient, VBOX_SHCL_GUEST_FN_DATA_WRITE, VBOX_SHCL_CPARMS_DATA_WRITE); 2523 2522 Msg.Parms.id64Context.SetUInt64(pCtx->idContext); 2524 Msg.Parms.f32Format.SetUInt32( uFormat);2523 Msg.Parms.f32Format.SetUInt32(fFormat); 2525 2524 Msg.Parms.pData.SetPtr(pvData, cbData); 2526 2525
Note:
See TracChangeset
for help on using the changeset viewer.