Changeset 79120 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- Jun 13, 2019 10:08:33 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibClipboard.cpp
r79107 r79120 97 97 VBoxClipboardGetHostMsg Msg; 98 98 99 VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, VBOX_SHARED_CLIPBOARD_ FN_GET_HOST_MSG, VBOX_SHARED_CLIPBOARD_CPARMS_GET_HOST_MSG);99 VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, VBOX_SHARED_CLIPBOARD_GUEST_FN_GET_HOST_MSG, VBOX_SHARED_CLIPBOARD_CPARMS_GET_HOST_MSG); 100 100 VbglHGCMParmUInt32Set(&Msg.msg, 0); 101 101 VbglHGCMParmUInt32Set(&Msg.formats, 0); … … 135 135 VBoxClipboardReadDataMsg Msg; 136 136 137 VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, VBOX_SHARED_CLIPBOARD_ FN_READ_DATA, VBOX_SHARED_CLIPBOARD_CPARMS_READ_DATA);137 VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, VBOX_SHARED_CLIPBOARD_GUEST_FN_READ_DATA, VBOX_SHARED_CLIPBOARD_CPARMS_READ_DATA); 138 138 VbglHGCMParmUInt32Set(&Msg.format, fFormat); 139 139 VbglHGCMParmPtrSet(&Msg.ptr, pv, cb); … … 172 172 RT_ZERO(Msg); 173 173 VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, 174 VBOX_SHARED_CLIPBOARD_ FN_READ_DATA_HDR, VBOX_SHARED_CLIPBOARD_CPARMS_READ_DATA_HDR);174 VBOX_SHARED_CLIPBOARD_GUEST_FN_READ_DATA_HDR, VBOX_SHARED_CLIPBOARD_CPARMS_READ_DATA_HDR); 175 175 Msg.uContext.SetUInt32(0); 176 176 Msg.uFlags.SetUInt32(0); … … 218 218 { 219 219 VBoxClipboardWriteDataHdrMsg Msg; 220 VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, VBOX_SHARED_CLIPBOARD_ FN_WRITE_DATA_HDR, VBOX_SHARED_CLIPBOARD_CPARMS_WRITE_DATA_HDR);220 VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, VBOX_SHARED_CLIPBOARD_GUEST_FN_WRITE_DATA_HDR, VBOX_SHARED_CLIPBOARD_CPARMS_WRITE_DATA_HDR); 221 221 222 222 Msg.uContext.SetUInt32(0); /** @todo Not used yet. */ … … 260 260 261 261 VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, 262 VBOX_SHARED_CLIPBOARD_ FN_READ_DATA_CHUNK, VBOX_SHARED_CLIPBOARD_CPARMS_READ_DATA_CHUNK);262 VBOX_SHARED_CLIPBOARD_GUEST_FN_READ_DATA_CHUNK, VBOX_SHARED_CLIPBOARD_CPARMS_READ_DATA_CHUNK); 263 263 Msg.pvData.SetPtr(pvData, cbData); 264 264 Msg.cbData.SetUInt32(0); … … 413 413 414 414 VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, 415 VBOX_SHARED_CLIPBOARD_ FN_WRITE_DATA_CHUNK, VBOX_SHARED_CLIPBOARD_CPARMS_WRITE_DATA_CHUNK);415 VBOX_SHARED_CLIPBOARD_GUEST_FN_WRITE_DATA_CHUNK, VBOX_SHARED_CLIPBOARD_CPARMS_WRITE_DATA_CHUNK); 416 416 Msg.pvData.SetPtr(pvData, cbData); 417 417 Msg.cbData.SetUInt32(0); … … 562 562 RT_ZERO(Msg); 563 563 564 VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, VBOX_SHARED_CLIPBOARD_ FN_READ_DIR, VBOX_SHARED_CLIPBOARD_CPARMS_READ_DIR);564 VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, VBOX_SHARED_CLIPBOARD_GUEST_FN_READ_DIR, VBOX_SHARED_CLIPBOARD_CPARMS_READ_DIR); 565 565 /** @todo Context ID not used yet. */ 566 566 Msg.uContext.SetUInt32(0); … … 608 608 RT_ZERO(Msg); 609 609 610 VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, VBOX_SHARED_CLIPBOARD_ FN_WRITE_DIR, VBOX_SHARED_CLIPBOARD_CPARMS_WRITE_DIR);610 VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, VBOX_SHARED_CLIPBOARD_GUEST_FN_WRITE_DIR, VBOX_SHARED_CLIPBOARD_CPARMS_WRITE_DIR); 611 611 /** @todo Context ID not used yet. */ 612 612 Msg.pvName.SetPtr((void *)pszPath, (uint32_t)cbPathSz); … … 645 645 646 646 VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, 647 VBOX_SHARED_CLIPBOARD_ FN_READ_FILE_HDR, VBOX_SHARED_CLIPBOARD_CPARMS_READ_FILE_HDR);647 VBOX_SHARED_CLIPBOARD_GUEST_FN_READ_FILE_HDR, VBOX_SHARED_CLIPBOARD_CPARMS_READ_FILE_HDR); 648 648 Msg.uContext.SetUInt32(0); /** @todo Not used yet. */ 649 649 Msg.pvName.SetPtr(pszFilename, cbFilename); … … 693 693 RT_ZERO(MsgHdr); 694 694 695 VBGL_HGCM_HDR_INIT(&MsgHdr.hdr, idClient, VBOX_SHARED_CLIPBOARD_ FN_WRITE_FILE_HDR, VBOX_SHARED_CLIPBOARD_CPARMS_WRITE_FILE_HDR);695 VBGL_HGCM_HDR_INIT(&MsgHdr.hdr, idClient, VBOX_SHARED_CLIPBOARD_GUEST_FN_WRITE_FILE_HDR, VBOX_SHARED_CLIPBOARD_CPARMS_WRITE_FILE_HDR); 696 696 MsgHdr.uContext.SetUInt32(0); /* Context ID; unused at the moment. */ 697 697 MsgHdr.pvName.SetPtr((void *)pszFilename, (uint32_t)(cbFileSz)); … … 726 726 727 727 VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, 728 VBOX_SHARED_CLIPBOARD_ FN_READ_FILE_DATA, VBOX_SHARED_CLIPBOARD_CPARMS_READ_FILE_DATA);728 VBOX_SHARED_CLIPBOARD_GUEST_FN_READ_FILE_DATA, VBOX_SHARED_CLIPBOARD_CPARMS_READ_FILE_DATA); 729 729 Msg.uContext.SetUInt32(0); 730 730 Msg.pvData.SetPtr(pvData, cbData); … … 763 763 RT_ZERO(MsgData); 764 764 765 VBGL_HGCM_HDR_INIT(&MsgData.hdr, idClient, VBOX_SHARED_CLIPBOARD_ FN_WRITE_FILE_DATA, VBOX_SHARED_CLIPBOARD_CPARMS_READ_FILE_DATA);765 VBGL_HGCM_HDR_INIT(&MsgData.hdr, idClient, VBOX_SHARED_CLIPBOARD_GUEST_FN_WRITE_FILE_DATA, VBOX_SHARED_CLIPBOARD_CPARMS_READ_FILE_DATA); 766 766 MsgData.uContext.SetUInt32(0); /* Context ID; unused at the moment. */ 767 767 MsgData.pvData.SetPtr(pvData, cbData); … … 791 791 VBoxClipboardWriteFormatsMsg Msg; 792 792 793 VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, VBOX_SHARED_CLIPBOARD_ FN_REPORT_FORMATS, VBOX_SHARED_CLIPBOARD_CPARMS_FORMATS);793 VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, VBOX_SHARED_CLIPBOARD_GUEST_FN_REPORT_FORMATS, VBOX_SHARED_CLIPBOARD_CPARMS_FORMATS); 794 794 VbglHGCMParmUInt32Set(&Msg.formats, fFormats); 795 795 … … 812 812 { 813 813 VBoxClipboardWriteDataMsg Msg; 814 VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, VBOX_SHARED_CLIPBOARD_ FN_WRITE_DATA, VBOX_SHARED_CLIPBOARD_CPARMS_WRITE_DATA);814 VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, VBOX_SHARED_CLIPBOARD_GUEST_FN_WRITE_DATA, VBOX_SHARED_CLIPBOARD_CPARMS_WRITE_DATA); 815 815 VbglHGCMParmUInt32Set(&Msg.format, fFormat); 816 816 VbglHGCMParmPtrSet(&Msg.ptr, pv, cb); … … 859 859 RT_ZERO(Msg); 860 860 861 VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, VBOX_SHARED_CLIPBOARD_ FN_WRITE_ERROR, 2);861 VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, VBOX_SHARED_CLIPBOARD_GUEST_FN_WRITE_ERROR, 2); 862 862 /** @todo Context ID not used yet. */ 863 863 Msg.uContext.SetUInt32(0);
Note:
See TracChangeset
for help on using the changeset viewer.