- Timestamp:
- Sep 3, 2019 9:59:30 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-win.cpp
r80562 r80563 778 778 LogFlowFunc(("uFormats=0x%x, hWnd=%p\n", pFormats->uFormats, pCtx->Win.hWnd)); 779 779 780 if (!(pFormats->uFormats & VBOX_SHARED_CLIPBOARD_FMT_URI_LIST)) 781 { 780 #ifdef VBOX_WITH_SHARED_CLIPBOARD_URI_LIST 781 if (pFormats->uFormats & VBOX_SHARED_CLIPBOARD_FMT_URI_LIST) 782 { 783 PSHAREDCLIPBOARDURITRANSFER pTransfer; 784 rc = vboxSvcClipboardURITransferStart(pClient, 785 SHAREDCLIPBOARDURITRANSFERDIR_READ, SHAREDCLIPBOARDSOURCE_REMOTE, 786 &pTransfer); 787 if (RT_SUCCESS(rc)) 788 { 789 /* Create the IDataObject implementation the host OS needs and assign 790 * the newly created transfer to this object. */ 791 rc = VBoxClipboardWinURITransferCreate(&pCtx->Win, pTransfer); 792 793 /* Note: The actual requesting + retrieving of data will be done in the IDataObject implementation 794 (ClipboardDataObjectImpl::GetData()). */ 795 } 796 } 797 else 798 { 799 #endif /* VBOX_WITH_SHARED_CLIPBOARD_URI_LIST */ 800 782 801 /* 783 802 * The guest announced formats. Forward to the window thread. … … 787 806 788 807 rc = VINF_SUCCESS; 789 } 808 790 809 #ifdef VBOX_WITH_SHARED_CLIPBOARD_URI_LIST 791 else if (pFormats->uFormats & VBOX_SHARED_CLIPBOARD_FMT_URI_LIST) 792 { 793 PSHAREDCLIPBOARDURITRANSFER pTransfer; 794 rc = vboxSvcClipboardURITransferStart(pClient, 795 SHAREDCLIPBOARDURITRANSFERDIR_READ, SHAREDCLIPBOARDSOURCE_REMOTE, 796 &pTransfer); 797 if (RT_SUCCESS(rc)) 798 { 799 /* Create the IDataObject implementation the host OS needs and assign 800 * the newly created transfer to this object. */ 801 rc = VBoxClipboardWinURITransferCreate(&pCtx->Win, pTransfer); 802 803 /* Note: The actual requesting + retrieving of data will be done in the IDataObject implementation 804 (ClipboardDataObjectImpl::GetData()). */ 805 } 806 } 807 #endif /* VBOX_WITH_SHARED_CLIPBOARD_URI_LIST */ 810 } 811 808 812 else 809 813 rc = VERR_NOT_SUPPORTED; 814 #endif /* VBOX_WITH_SHARED_CLIPBOARD_URI_LIST */ 810 815 811 816 LogFlowFuncLeaveRC(rc);
Note:
See TracChangeset
for help on using the changeset viewer.