Lines Matching defs:Msg

70     DragAndDropSvc::VBOXDNDNEXTMSGMSG Msg;
71 RT_ZERO(Msg);
72 Msg.hdr.result = VERR_WRONG_ORDER;
73 Msg.hdr.u32ClientID = uClientId;
74 Msg.hdr.u32Function = DragAndDropSvc::GUEST_DND_GET_NEXT_HOST_MSG;
75 Msg.hdr.cParms = 3;
77 Msg.msg.SetUInt32(0);
78 Msg.num_parms.SetUInt32(0);
79 Msg.block.SetUInt32(fWait);
81 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL(sizeof(Msg)), &Msg, sizeof(Msg));
84 rc = Msg.hdr.result;
87 rc = Msg.msg.GetUInt32(puMsg); AssertRC(rc);
88 rc = Msg.num_parms.GetUInt32(pcParms); AssertRC(rc);
115 DragAndDropSvc::VBOXDNDHGACTIONMSG Msg;
116 RT_ZERO(Msg);
117 Msg.hdr.u32ClientID = uClientId;
118 Msg.hdr.u32Function = uMsg;
119 Msg.hdr.cParms = 7;
121 Msg.uScreenId.SetUInt32(0);
122 Msg.uX.SetUInt32(0);
123 Msg.uY.SetUInt32(0);
124 Msg.uDefAction.SetUInt32(0);
125 Msg.uAllActions.SetUInt32(0);
126 Msg.pvFormats.SetPtr(pszFormats, cbFormats);
127 Msg.cFormats.SetUInt32(0);
129 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL(sizeof(Msg)), &Msg, sizeof(Msg));
132 rc = Msg.hdr.result;
135 rc = Msg.uScreenId.GetUInt32(puScreenId); AssertRC(rc);
136 rc = Msg.uX.GetUInt32(puX); AssertRC(rc);
137 rc = Msg.uY.GetUInt32(puY); AssertRC(rc);
138 rc = Msg.uDefAction.GetUInt32(puDefAction); AssertRC(rc);
139 rc = Msg.uAllActions.GetUInt32(puAllActions); AssertRC(rc);
140 rc = Msg.cFormats.GetUInt32(pcbFormatsRecv); AssertRC(rc);
151 DragAndDropSvc::VBOXDNDHGLEAVEMSG Msg;
152 RT_ZERO(Msg);
153 Msg.hdr.u32ClientID = uClientId;
154 Msg.hdr.u32Function = DragAndDropSvc::HOST_DND_HG_EVT_LEAVE;
155 Msg.hdr.cParms = 0;
157 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL(sizeof(Msg)), &Msg, sizeof(Msg));
159 rc = Msg.hdr.result;
166 DragAndDropSvc::VBOXDNDHGCANCELMSG Msg;
167 RT_ZERO(Msg);
168 Msg.hdr.u32ClientID = uClientId;
169 Msg.hdr.u32Function = DragAndDropSvc::HOST_DND_HG_EVT_CANCEL;
170 Msg.hdr.cParms = 0;
172 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL(sizeof(Msg)), &Msg, sizeof(Msg));
174 rc = Msg.hdr.result;
190 DragAndDropSvc::VBOXDNDHGSENDDIRMSG Msg;
191 RT_ZERO(Msg);
192 Msg.hdr.u32ClientID = uClientId;
193 Msg.hdr.u32Function = DragAndDropSvc::HOST_DND_HG_SND_DIR;
194 Msg.hdr.cParms = 3;
196 Msg.pvName.SetPtr(pszDirname, cbDirname);
197 Msg.cbName.SetUInt32(0);
198 Msg.fMode.SetUInt32(0);
200 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL(sizeof(Msg)), &Msg, sizeof(Msg));
203 rc = Msg.hdr.result;
204 if (RT_SUCCESS(Msg.hdr.result))
206 rc = Msg.cbName.GetUInt32(pcbDirnameRecv); AssertRC(rc);
207 rc = Msg.fMode.GetUInt32(pfMode); AssertRC(rc);
233 DragAndDropSvc::VBOXDNDHGSENDFILEMSG Msg;
234 RT_ZERO(Msg);
235 Msg.hdr.u32ClientID = uClientId;
236 Msg.hdr.u32Function = DragAndDropSvc::HOST_DND_HG_SND_FILE;
237 Msg.hdr.cParms = 5;
239 Msg.pvName.SetPtr(pszFilename, cbFilename);
240 Msg.cbName.SetUInt32(0);
241 Msg.pvData.SetPtr(pvData, cbData);
242 Msg.cbData.SetUInt32(0);
243 Msg.fMode.SetUInt32(0);
245 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL(sizeof(Msg)), &Msg, sizeof(Msg));
248 rc = Msg.hdr.result;
251 rc = Msg.cbName.GetUInt32(pcbFilenameRecv); AssertRC(rc);
252 rc = Msg.cbData.GetUInt32(pcbDataRecv); AssertRC(rc);
253 rc = Msg.fMode.GetUInt32(pfMode); AssertRC(rc);
475 DragAndDropSvc::VBOXDNDHGSENDDATAMSG Msg;
476 RT_ZERO(Msg);
477 Msg.hdr.u32ClientID = uClientId;
478 Msg.hdr.u32Function = DragAndDropSvc::HOST_DND_HG_SND_DATA;
479 Msg.hdr.cParms = 5;
481 Msg.uScreenId.SetUInt32(0);
482 Msg.pvFormat.SetPtr(pszFormat, cbFormat);
483 Msg.cFormat.SetUInt32(0);
484 Msg.pvData.SetPtr(pvData, cbData);
485 Msg.cbData.SetUInt32(0);
487 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL(sizeof(Msg)), &Msg, sizeof(Msg));
490 rc = Msg.hdr.result;
494 rc = Msg.uScreenId.GetUInt32(puScreenId); AssertRC(rc);
495 rc = Msg.cFormat.GetUInt32(pcbFormatRecv); AssertRC(rc);
496 rc = Msg.cbData.GetUInt32(pcbDataTotal); AssertRC(rc);
515 DragAndDropSvc::VBOXDNDHGSENDMOREDATAMSG Msg;
516 RT_ZERO(Msg);
517 Msg.hdr.u32ClientID = uClientId;
518 Msg.hdr.u32Function = DragAndDropSvc::HOST_DND_HG_SND_MORE_DATA;
519 Msg.hdr.cParms = 2;
521 Msg.pvData.SetPtr(pvData, cbData);
522 Msg.cbData.SetUInt32(0);
524 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL(sizeof(Msg)), &Msg, sizeof(Msg));
527 rc = Msg.hdr.result;
531 rc = Msg.cbData.GetUInt32(pcbDataRecv); AssertRC(rc);
643 DragAndDropSvc::VBOXDNDGHREQPENDINGMSG Msg;
644 RT_ZERO(Msg);
645 Msg.hdr.u32ClientID = uClientId;
646 Msg.hdr.u32Function = DragAndDropSvc::HOST_DND_GH_REQ_PENDING;
647 Msg.hdr.cParms = 1;
649 Msg.uScreenId.SetUInt32(0);
651 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL(sizeof(Msg)), &Msg, sizeof(Msg));
654 rc = Msg.hdr.result;
657 rc = Msg.uScreenId.GetUInt32(puScreenId); AssertRC(rc);
675 DragAndDropSvc::VBOXDNDGHDROPPEDMSG Msg;
676 RT_ZERO(Msg);
677 Msg.hdr.u32ClientID = uClientId;
678 Msg.hdr.u32Function = DragAndDropSvc::HOST_DND_GH_EVT_DROPPED;
679 Msg.hdr.cParms = 3;
681 Msg.pvFormat.SetPtr(pszFormat, cbFormat);
682 Msg.cFormat.SetUInt32(0);
683 Msg.uAction.SetUInt32(0);
685 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL(sizeof(Msg)), &Msg, sizeof(Msg));
688 rc = Msg.hdr.result;
691 rc = Msg.cFormat.GetUInt32(pcbFormatRecv); AssertRC(rc);
692 rc = Msg.uAction.GetUInt32(puAction); AssertRC(rc);
873 DragAndDropSvc::VBOXDNDHGACKOPMSG Msg;
874 RT_ZERO(Msg);
875 Msg.hdr.result = VERR_WRONG_ORDER;
876 Msg.hdr.u32ClientID = u32ClientId;
877 Msg.hdr.u32Function = DragAndDropSvc::GUEST_DND_HG_ACK_OP;
878 Msg.hdr.cParms = 1;
880 Msg.uAction.SetUInt32(uAction);
882 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL(sizeof(Msg)), &Msg, sizeof(Msg));
884 rc = Msg.hdr.result;
893 DragAndDropSvc::VBOXDNDHGREQDATAMSG Msg;
894 RT_ZERO(Msg);
895 Msg.hdr.result = VERR_WRONG_ORDER;
896 Msg.hdr.u32ClientID = u32ClientId;
897 Msg.hdr.u32Function = DragAndDropSvc::GUEST_DND_HG_REQ_DATA;
898 Msg.hdr.cParms = 1;
900 Msg.pFormat.SetPtr((void*)pcszFormat, (uint32_t)strlen(pcszFormat) + 1);
902 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL(sizeof(Msg)), &Msg, sizeof(Msg));
904 rc = Msg.hdr.result;
916 DragAndDropSvc::VBOXDNDGHACKPENDINGMSG Msg;
917 RT_ZERO(Msg);
918 Msg.hdr.result = VERR_WRONG_ORDER;
919 Msg.hdr.u32ClientID = u32ClientId;
920 Msg.hdr.u32Function = DragAndDropSvc::GUEST_DND_GH_ACK_PENDING;
921 Msg.hdr.cParms = 3;
923 Msg.uDefAction.SetUInt32(uDefAction);
924 Msg.uAllActions.SetUInt32(uAllActions);
925 Msg.pFormat.SetPtr((void*)pcszFormats, (uint32_t)strlen(pcszFormats) + 1);
927 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL(sizeof(Msg)), &Msg, sizeof(Msg));
929 rc = Msg.hdr.result;
941 DragAndDropSvc::VBOXDNDGHSENDDATAMSG Msg;
942 RT_ZERO(Msg);
943 Msg.hdr.result = VERR_WRONG_ORDER;
944 Msg.hdr.u32ClientID = u32ClientId;
945 Msg.hdr.u32Function = DragAndDropSvc::GUEST_DND_GH_SND_DATA;
946 Msg.hdr.cParms = 2;
949 Msg.cbTotalBytes.SetUInt32(cbData + cbAdditionalData);
959 Msg.pvData.SetPtr(static_cast<uint8_t*>(pvData) + cbSent, cbCurChunk);
961 rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL(sizeof(Msg)), &Msg, sizeof(Msg));
963 rc = Msg.hdr.result;
983 DragAndDropSvc::VBOXDNDGHSENDDIRMSG Msg;
984 RT_ZERO(Msg);
985 Msg.hdr.result = VERR_WRONG_ORDER;
986 Msg.hdr.u32ClientID = u32ClientId;
987 Msg.hdr.u32Function = DragAndDropSvc::GUEST_DND_GH_SND_DIR;
988 Msg.hdr.cParms = 3;
994 Msg.pvName.SetPtr((void *)strPath.c_str(), (uint32_t)(strPath.length() + 1));
995 Msg.cbName.SetUInt32((uint32_t)(strPath.length() + 1));
996 Msg.fMode.SetUInt32(obj.GetMode());
998 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL(sizeof(Msg)), &Msg, sizeof(Msg));
1000 rc = Msg.hdr.result;
1015 DragAndDropSvc::VBOXDNDGHSENDFILEMSG Msg;
1016 RT_ZERO(Msg);
1017 Msg.hdr.result = VERR_WRONG_ORDER;
1018 Msg.hdr.u32ClientID = u32ClientId;
1019 Msg.hdr.u32Function = DragAndDropSvc::GUEST_DND_GH_SND_FILE;
1020 Msg.hdr.cParms = 5;
1026 Msg.pvName.SetPtr((void *)strPath.c_str(), (uint32_t)(strPath.length() + 1));
1027 Msg.cbName.SetUInt32((uint32_t)(strPath.length() + 1));
1028 Msg.fMode.SetUInt32(obj.GetMode());
1041 Msg.cbData.SetUInt32(cbRead);
1042 Msg.pvData.SetPtr(pvBuf, cbRead);
1044 rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL(sizeof(Msg)), &Msg, sizeof(Msg));
1046 rc = Msg.hdr.result;
1158 DragAndDropSvc::VBOXDNDGHEVTERRORMSG Msg;
1159 RT_ZERO(Msg);
1160 Msg.hdr.result = VERR_WRONG_ORDER;
1161 Msg.hdr.u32ClientID = u32ClientId;
1162 Msg.hdr.u32Function = DragAndDropSvc::GUEST_DND_GH_EVT_ERROR;
1163 Msg.hdr.cParms = 1;
1165 Msg.uRC.SetUInt32((uint32_t)rcErr); /* uint32_t vs. int. */
1167 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL(sizeof(Msg)), &Msg, sizeof(Msg));
1169 rc = Msg.hdr.result;