Changeset 98824 in vbox for trunk/src/VBox/Additions/common/VBoxGuest
- Timestamp:
- Mar 2, 2023 5:06:36 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibGuestCtrl.cpp
r98818 r98824 1071 1071 * @param pCtx Guest control command context to use. 1072 1072 * @param puHandle Where to return the directory handle to rewind. 1073 * @param pcbDirEntry Where to return the directory entry size. 1074 */ 1075 VBGLR3DECL(int) VbglR3GuestCtrlDirGetRead(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t *puHandle, uint32_t *pcbDirEntry) 1076 { 1077 AssertPtrReturn(pCtx, VERR_INVALID_POINTER); 1078 AssertReturn(pCtx->uNumParms == 5, VERR_INVALID_PARAMETER); 1073 */ 1074 VBGLR3DECL(int) VbglR3GuestCtrlDirGetRead(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t *puHandle) 1075 { 1076 AssertPtrReturn(pCtx, VERR_INVALID_POINTER); 1077 AssertReturn(pCtx->uNumParms == 2, VERR_INVALID_PARAMETER); 1079 1078 1080 1079 AssertPtrReturn(puHandle, VERR_INVALID_POINTER); 1081 AssertPtrReturn(pcbDirEntry, VERR_INVALID_POINTER);1082 1080 1083 1081 int rc; … … 1088 1086 VbglHGCMParmUInt32Set(&Msg.context, HOST_MSG_DIR_READ); 1089 1087 VbglHGCMParmUInt32Set(&Msg.handle, 0); 1090 VbglHGCMParmUInt32Set(&Msg.max_entry_size, 0);1091 1088 1092 1089 rc = VbglR3HGCMCall(&Msg.hdr, sizeof(Msg)); … … 1095 1092 Msg.context.GetUInt32(&pCtx->uContextID); 1096 1093 Msg.handle.GetUInt32(puHandle); 1097 Msg.max_entry_size.GetUInt32(pcbDirEntry);1098 1094 } 1099 1095 } while (rc == VERR_INTERRUPTED && g_fVbglR3GuestCtrlHavePeekGetCancel); … … 2274 2270 * @param uRc Guest rc of operation (note: IPRT-style signed int). 2275 2271 * @param pEntry Directory entry to send. 2276 * @param cbSize Size (in bytes) of \a pDirEntry to send. 2277 * This might be needed as the size can be bigger than GSTCTLDIRENTRYEX. 2272 * @param cbSize Size (in bytes) of the OFFSET(GSTCTLDIRENTRYEX, szName[pEntry->cbName + 1]). 2278 2273 * See RTDirReadEx() for more information. 2279 2274 * @param pszUser Associated user ID (owner, uid) as a string. … … 2309 2304 * @param uRc Guest rc of operation (note: IPRT-style signed int). 2310 2305 * @param pEntry Directory entry to send. 2311 * @param cbSize Size (in bytes) of \a pDirEntry to send. 2312 * This might be needed as the size can be bigger than GSTCTLDIRENTRYEX. 2306 * @param cbSize Size (in bytes) of the OFFSET(GSTCTLDIRENTRYEX, szName[pEntry->cbName + 1]). 2313 2307 * See RTDirReadEx() for more information. 2314 2308 */
Note:
See TracChangeset
for help on using the changeset viewer.