VirtualBox

Changeset 81269 in vbox for trunk/include/VBox/GuestHost


Ignore:
Timestamp:
Oct 14, 2019 6:28:34 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
133964
Message:

Shared Clipboard/Transfers: Implemented transfer cancellation support for the Windows shell.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/GuestHost/SharedClipboard-win.h

    r81259 r81269  
    170170    enum Status
    171171    {
     172        /** The object is uninitialized (not ready). */
    172173        Uninitialized = 0,
    173         Initialized
     174        /** The object is initialized and ready to use. */
     175        Initialized,
     176        /** The operation has been successfully completed. */
     177        Completed,
     178        /** The operation has been canceled. */
     179        Canceled,
     180        /** An (unrecoverable) error occurred. */
     181        Error
    174182    };
    175183
     
    218226    static DECLCALLBACK(int) readThread(RTTHREAD ThreadSelf, void *pvUser);
    219227
    220     static const char* ClipboardFormatToString(CLIPFORMAT fmt);
     228    static void logFormat(CLIPFORMAT fmt);
    221229
    222230protected:
     
    249257    typedef std::vector<FSOBJENTRY> FsObjEntryList;
    250258
     259    /** The object's current status. */
    251260    Status                      m_enmStatus;
     261    /** The object's current reference count. */
    252262    LONG                        m_lRefCount;
     263    /** How many formats have been registered. */
    253264    ULONG                       m_cFormats;
    254265    LPFORMATETC                 m_pFormatEtc;
    255266    LPSTGMEDIUM                 m_pStgMedium;
     267    /** Pointer to the associated transfer object being handled. */
    256268    PSHCLTRANSFER               m_pTransfer;
     269    /** Current stream object being used. */
    257270    IStream                    *m_pStream;
     271    /** Current object index being handled by the data object.
     272     *  This is needed to create the next IStream object for e.g. the next upcoming file/dir/++ in the transfer. */
    258273    ULONG                       m_uObjIdx;
    259274    /** List of (cached) file system objects. */
     
    265280    /** Event being triggered when the transfer has been completed. */
    266281    RTSEMEVENT                  m_EventTransferComplete;
     282    /** Registered format for CFSTR_FILEDESCRIPTORA. */
    267283    UINT                        m_cfFileDescriptorA;
     284    /** Registered format for CFSTR_FILEDESCRIPTORW. */
    268285    UINT                        m_cfFileDescriptorW;
     286    /** Registered format for CFSTR_FILECONTENTS. */
    269287    UINT                        m_cfFileContents;
     288    /** Registered format for CFSTR_PERFORMEDDROPEFFECT. */
     289    UINT                        m_cfPerformedDropEffect;
    270290};
    271291
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