Changeset 58231 in vbox
- Timestamp:
- Oct 14, 2015 11:54:35 AM (9 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/HostServices/DragAndDropSvc.h
r58230 r58231 721 721 #pragma pack() 722 722 723 /** Builds a callback magic out of the function ID and the version 724 * of the callback data. */ 725 #define VBOX_DND_CB_MAGIC_MAKE(uFn, uVer) \ 726 RT_MAKE_U32(uVer, uFn) 727 723 728 /* 724 * Callback data magics. 725 */ 726 enum 727 { 728 CB_MAGIC_DND_CONNECT = 0x25161155, 729 CB_MAGIC_DND_HG_GET_NEXT_HOST_MSG = 0x19820126, 730 CB_MAGIC_DND_HG_GET_NEXT_HOST_MSG_DATA = 0x19850630, 731 CB_MAGIC_DND_HG_ACK_OP = 0xe2100b93, 732 CB_MAGIC_DND_HG_REQ_DATA = 0x5cb3faf9, 733 CB_MAGIC_DND_HG_EVT_PROGRESS = 0x8c8a6956, 734 CB_MAGIC_DND_GH_ACK_PENDING = 0xbe975a14, 735 CB_MAGIC_DND_GH_SND_DATA = 0x4eb61bff, 736 CB_MAGIC_DND_GH_SND_DATA_HDR = 0x4631ee4f, 737 CB_MAGIC_DND_GH_SND_DIR = 0x411ca754, 738 CB_MAGIC_DND_GH_SND_FILE_HDR = 0x65e35eaf, 739 CB_MAGIC_DND_GH_SND_FILE_DATA = 0x19840804, 740 CB_MAGIC_DND_GH_EVT_ERROR = 0x117a87c4 729 * Callback magics. 730 */ 731 enum eDnDCallbackMagics 732 { 733 CB_MAGIC_DND_CONNECT = VBOX_DND_CB_MAGIC_MAKE(GUEST_DND_CONNECT, 0), 734 CB_MAGIC_DND_HG_GET_NEXT_HOST_MSG = VBOX_DND_CB_MAGIC_MAKE(GUEST_DND_GET_NEXT_HOST_MSG, 0), 735 CB_MAGIC_DND_HG_ACK_OP = VBOX_DND_CB_MAGIC_MAKE(GUEST_DND_HG_ACK_OP, 0), 736 CB_MAGIC_DND_HG_REQ_DATA = VBOX_DND_CB_MAGIC_MAKE(GUEST_DND_HG_REQ_DATA, 0), 737 CB_MAGIC_DND_HG_EVT_PROGRESS = VBOX_DND_CB_MAGIC_MAKE(GUEST_DND_HG_EVT_PROGRESS, 0), 738 CB_MAGIC_DND_GH_ACK_PENDING = VBOX_DND_CB_MAGIC_MAKE(GUEST_DND_GH_ACK_PENDING, 0), 739 CB_MAGIC_DND_GH_SND_DATA = VBOX_DND_CB_MAGIC_MAKE(GUEST_DND_GH_SND_DATA, 0), 740 CB_MAGIC_DND_GH_SND_DATA_HDR = VBOX_DND_CB_MAGIC_MAKE(GUEST_DND_GH_SND_DATA_HDR, 0), 741 CB_MAGIC_DND_GH_SND_DIR = VBOX_DND_CB_MAGIC_MAKE(GUEST_DND_GH_SND_DIR, 0), 742 CB_MAGIC_DND_GH_SND_FILE_HDR = VBOX_DND_CB_MAGIC_MAKE(GUEST_DND_GH_SND_FILE_HDR, 0), 743 CB_MAGIC_DND_GH_SND_FILE_DATA = VBOX_DND_CB_MAGIC_MAKE(GUEST_DND_GH_SND_FILE_DATA, 0), 744 CB_MAGIC_DND_GH_EVT_ERROR = VBOX_DND_CB_MAGIC_MAKE(GUEST_DND_GH_EVT_ERROR, 0) 741 745 }; 742 746 -
trunk/src/VBox/HostServices/DragAndDrop/service.cpp
r58230 r58231 679 679 { 680 680 VBOXDNDCBHGGETNEXTHOSTMSGDATA data; 681 data.hdr.u32Magic = CB_MAGIC_DND_HG_GET_NEXT_HOST_MSG_DATA;681 data.hdr.u32Magic = VBOX_DND_CB_MAGIC_MAKE(0 /* uFn */, 0 /* uVer */); 682 682 data.uMsg = u32Function; 683 683 data.cParms = cParms; -
trunk/src/VBox/Main/src-client/GuestDnDTargetImpl.cpp
r58230 r58231 1124 1124 AssertPtr(pCBData); 1125 1125 AssertReturn(sizeof(VBOXDNDCBHGGETNEXTHOSTMSGDATA) == cbParms, VERR_INVALID_PARAMETER); 1126 AssertReturn(CB_MAGIC_DND_HG_GET_NEXT_HOST_MSG_DATA == pCBData->hdr.u32Magic, VERR_INVALID_PARAMETER);1127 1126 1128 1127 LogFlowFunc(("pCBData->uMsg=%RU32, paParms=%p, cParms=%RU32\n", pCBData->uMsg, pCBData->paParms, pCBData->cParms));
Note:
See TracChangeset
for help on using the changeset viewer.