VirtualBox

Ignore:
Timestamp:
Dec 9, 2019 7:48:38 PM (5 years ago)
Author:
vboxsync
Message:

SharedClipboardSvc,Vbgl: Looked at the connect and feature exchange stuff. Decided to make the connect one always fail, that way the beta and rc additions should not try make use of any of the new features and we should be free to do whatever we like. Need to circle back and drop the _61B parameter count variants later. bugref:9437

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxClipboard.cpp

    r82513 r82525  
    257257                    {
    258258                        LogFunc(("WM_CLIPBOARDUPDATE: Reporting formats %#x\n", Formats.Formats));
    259                         rc = VbglR3ClipboardReportFormats(pCtx->CmdCtx.uClientID, Formats.Formats);
     259                        rc = VbglR3ClipboardReportFormats(pCtx->CmdCtx.idClient, Formats.Formats);
    260260                    }
    261261                }
     
    303303                    if (   RT_SUCCESS(rc)
    304304                        && Formats.Formats != VBOX_SHCL_FMT_NONE)
    305                         rc = VbglR3ClipboardReportFormats(pCtx->CmdCtx.uClientID, Formats.Formats);
     305                        rc = VbglR3ClipboardReportFormats(pCtx->CmdCtx.idClient, Formats.Formats);
    306306                }
    307307                else
     
    647647
    648648                    /* Requested clipboard format is not available, send empty data. */
    649                     VbglR3ClipboardWriteData(pCtx->CmdCtx.uClientID, VBOX_SHCL_FMT_NONE, NULL, 0);
     649                    VbglR3ClipboardWriteData(pCtx->CmdCtx.idClient, VBOX_SHCL_FMT_NONE, NULL, 0);
    650650                }
    651651
     
    922922        rc = SharedClipboardWinCtxInit(&pCtx->Win);
    923923        if (RT_SUCCESS(rc))
    924             rc = VbglR3ClipboardConnectEx(&pCtx->CmdCtx);
     924            rc = VbglR3ClipboardConnectEx(&pCtx->CmdCtx, VBOX_SHCL_GF_0_CONTEXT_ID);
    925925        if (RT_SUCCESS(rc))
    926926        {
     
    10041004        if (pCtx->CmdCtx.fUseLegacyProtocol)
    10051005        {
    1006             rc = VbglR3ClipboardGetHostMsgOld(pCtx->CmdCtx.uClientID, &uMsg, &uFormats);
     1006            rc = VbglR3ClipboardGetHostMsgOld(pCtx->CmdCtx.idClient, &uMsg, &uFormats);
    10071007            if (RT_FAILURE(rc))
    10081008            {
     
    11791179    /* Disconnect from the host service.
    11801180     * This will also send a VBOX_SHCL_HOST_MSG_QUIT from the host so that we can break out from our message worker. */
    1181     VbglR3ClipboardDisconnect(pCtx->CmdCtx.uClientID);
    1182     pCtx->CmdCtx.uClientID = 0;
     1181    VbglR3ClipboardDisconnect(pCtx->CmdCtx.idClient);
     1182    pCtx->CmdCtx.idClient = 0;
    11831183
    11841184    LogFlowFuncLeaveRC(VINF_SUCCESS);
     
    11941194
    11951195    /* Make sure that we are disconnected. */
    1196     Assert(pCtx->CmdCtx.uClientID == 0);
     1196    Assert(pCtx->CmdCtx.idClient == 0);
    11971197
    11981198    vboxClipboardDestroy(pCtx);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette