Changeset 80847 in vbox for trunk/src/VBox/Additions/WINNT
- Timestamp:
- Sep 17, 2019 9:38:16 AM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 133417
- Location:
- trunk/src/VBox/Additions/WINNT/VBoxTray
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxClipboard.cpp
r80845 r80847 488 488 LogFunc(("WM_RENDERFORMAT: cfFormat=%u -> fFormat=0x%x\n", cfFormat, fFormat)); 489 489 490 if (fFormat == VBOX_SH ARED_CLIPBOARD_FMT_NONE)490 if (fFormat == VBOX_SHCL_FMT_NONE) 491 491 { 492 492 LogFunc(("WM_RENDERFORMAT: Unsupported format requested\n")); … … 571 571 * must have the exact string size. 572 572 */ 573 if (fFormat == VBOX_SH ARED_CLIPBOARD_FMT_UNICODETEXT)573 if (fFormat == VBOX_SHCL_FMT_UNICODETEXT) 574 574 { 575 575 size_t cbActual = 0; … … 648 648 const SHCLFORMATS fFormats = pEvent->u.ReportedFormats.uFormats; 649 649 650 if (fFormats != VBOX_SH ARED_CLIPBOARD_FMT_NONE) /* Could arrive with some older GA versions. */650 if (fFormats != VBOX_SHCL_FMT_NONE) /* Could arrive with some older GA versions. */ 651 651 { 652 652 int rc = SharedClipboardWinOpen(hwnd); … … 656 656 657 657 #ifdef VBOX_WITH_SHARED_CLIPBOARD_URI_LIST 658 if (fFormats & VBOX_SH ARED_CLIPBOARD_FMT_URI_LIST)658 if (fFormats & VBOX_SHCL_FMT_URI_LIST) 659 659 { 660 LogFunc(("VBOX_SH ARED_CLIPBOARD_FMT_URI_LIST\n"));660 LogFunc(("VBOX_SHCL_FMT_URI_LIST\n")); 661 661 662 662 PSHCLURITRANSFER pTransfer = SharedClipboardURICtxGetTransfer(&pCtx->URI, 0); /** @todo FIX !!! */ … … 705 705 if (RT_SUCCESS(rc)) 706 706 { 707 if (uFormat == VBOX_SH ARED_CLIPBOARD_FMT_BITMAP)707 if (uFormat == VBOX_SHCL_FMT_BITMAP) 708 708 { 709 709 hClip = GetClipboardData(CF_DIB); … … 725 725 } 726 726 } 727 else if (uFormat == VBOX_SH ARED_CLIPBOARD_FMT_UNICODETEXT)727 else if (uFormat == VBOX_SHCL_FMT_UNICODETEXT) 728 728 { 729 729 hClip = GetClipboardData(CF_UNICODETEXT); … … 745 745 } 746 746 } 747 else if (uFormat == VBOX_SH ARED_CLIPBOARD_FMT_HTML)747 else if (uFormat == VBOX_SHCL_FMT_HTML) 748 748 { 749 749 UINT format = RegisterClipboardFormat(SHCL_WIN_REGFMT_HTML); … … 771 771 } 772 772 #ifdef VBOX_WITH_SHARED_CLIPBOARD_URI_LIST 773 else if (uFormat == VBOX_SH ARED_CLIPBOARD_FMT_URI_LIST)773 else if (uFormat == VBOX_SHCL_FMT_URI_LIST) 774 774 { 775 775 LogFunc(("cTransfersRunning=%RU32\n", SharedClipboardURICtxGetRunningTransfers(&pCtx->URI))); … … 855 855 856 856 /* Requested clipboard format is not available, send empty data. */ 857 VbglR3ClipboardWriteData(pCtx->CmdCtx.uClientID, VBOX_SH ARED_CLIPBOARD_FMT_NONE, NULL, 0);857 VbglR3ClipboardWriteData(pCtx->CmdCtx.uClientID, VBOX_SHCL_FMT_NONE, NULL, 0); 858 858 #ifdef DEBUG_andy 859 859 AssertFailed(); … … 1119 1119 } 1120 1120 1121 DECLCALLBACK(int) VBox ClipboardInit(const PVBOXSERVICEENV pEnv, void **ppInstance)1121 DECLCALLBACK(int) VBoxShClInit(const PVBOXSERVICEENV pEnv, void **ppInstance) 1122 1122 { 1123 1123 LogFlowFuncEnter(); … … 1182 1182 } 1183 1183 1184 DECLCALLBACK(int) VBox ClipboardWorker(void *pInstance, bool volatile *pfShutdown)1184 DECLCALLBACK(int) VBoxShClWorker(void *pInstance, bool volatile *pfShutdown) 1185 1185 { 1186 1186 AssertPtr(pInstance); … … 1229 1229 switch (uMsg) 1230 1230 { 1231 case VBOX_SH ARED_CLIPBOARD_HOST_MSG_FORMATS_REPORT:1231 case VBOX_SHCL_HOST_MSG_FORMATS_REPORT: 1232 1232 { 1233 1233 pEvent->enmType = VBGLR3CLIPBOARDEVENTTYPE_REPORT_FORMATS; … … 1236 1236 } 1237 1237 1238 case VBOX_SH ARED_CLIPBOARD_HOST_MSG_READ_DATA:1238 case VBOX_SHCL_HOST_MSG_READ_DATA: 1239 1239 { 1240 1240 pEvent->enmType = VBGLR3CLIPBOARDEVENTTYPE_READ_DATA; … … 1340 1340 } 1341 1341 1342 DECLCALLBACK(int) VBox ClipboardStop(void *pInstance)1342 DECLCALLBACK(int) VBoxShClStop(void *pInstance) 1343 1343 { 1344 1344 AssertPtrReturn(pInstance, VERR_INVALID_POINTER); … … 1356 1356 } 1357 1357 1358 DECLCALLBACK(void) VBox ClipboardDestroy(void *pInstance)1358 DECLCALLBACK(void) VBoxShClDestroy(void *pInstance) 1359 1359 { 1360 1360 AssertPtrReturnVoid(pInstance); … … 1388 1388 "Shared Clipboard", 1389 1389 /* methods */ 1390 VBox ClipboardInit,1391 VBox ClipboardWorker,1392 VBox ClipboardStop,1393 VBox ClipboardDestroy1390 VBoxShClInit, 1391 VBoxShClWorker, 1392 VBoxShClStop, 1393 VBoxShClDestroy 1394 1394 }; 1395 1395 -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDnDDropTarget.cpp
r78516 r80847 374 374 AssertPtr(pDropFiles); 375 375 376 /** @todo Replace / merge the following code with VBox ClipboardWinDropFilesToStringList(). */376 /** @todo Replace / merge the following code with VBoxShClWinDropFilesToStringList(). */ 377 377 378 378 /* Do we need to do Unicode stuff? */
Note:
See TracChangeset
for help on using the changeset viewer.