Changeset 10522 in vbox
- Timestamp:
- Jul 11, 2008 1:07:00 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VBoxGuest.h
r10518 r10522 1101 1101 #if defined(RT_OS_WINDOWS) 1102 1102 /* @todo Remove IOCTL_CODE later! Integrate it in VBOXGUEST_IOCTL_CODE below. */ 1103 /** @todo r=bird: IOCTL_CODE is supposedly defined in some header included by Windows.h or ntddk.h, which is why it wasn't in the #if 0 earlier. See HostDrivers/Support/SUPDrvIOC.h... */ 1103 1104 # define IOCTL_CODE(DeviceType, Function, Method, Access, DataSize_ignored) \ 1104 1105 ( ((DeviceType) << 16) | ((Access) << 14) | ((Function) << 2) | (Method)) … … 1140 1141 1141 1142 /** IOCTL to VBoxGuest to query the VMMDev IO port region start. */ 1142 # define VBOXGUEST_IOCTL_GETVMMDEVPORTVBOXGUEST_IOCTL_CODE(1, sizeof(VBoxGuestPortInfo))1143 # define IOCTL_VBOXGUEST_GETVMMDEVPORTVBOXGUEST_IOCTL_GETVMMDEVPORT1143 #define VBOXGUEST_IOCTL_GETVMMDEVPORT VBOXGUEST_IOCTL_CODE(1, sizeof(VBoxGuestPortInfo)) 1144 #define IOCTL_VBOXGUEST_GETVMMDEVPORT VBOXGUEST_IOCTL_GETVMMDEVPORT 1144 1145 1145 1146 #pragma pack(4) … … 1151 1152 1152 1153 /** IOCTL to VBoxGuest to wait for a VMMDev host notification */ 1153 # define VBOXGUEST_IOCTL_WAITEVENTVBOXGUEST_IOCTL_CODE(2, sizeof(VBoxGuestWaitEventInfo))1154 # define IOCTL_VBOXGUEST_WAITEVENTVBOXGUEST_IOCTL_WAITEVENT1154 #define VBOXGUEST_IOCTL_WAITEVENT VBOXGUEST_IOCTL_CODE(2, sizeof(VBoxGuestWaitEventInfo)) 1155 #define IOCTL_VBOXGUEST_WAITEVENT VBOXGUEST_IOCTL_WAITEVENT 1155 1156 1156 1157 /** IOCTL to VBoxGuest to interrupt (cancel) any pending WAITEVENTs and return. 1157 1158 * Handled inside the guest additions and not seen by the host at all. 1158 1159 * @see VBOXGUEST_IOCTL_WAITEVENT */ 1159 # define VBOXGUEST_IOCTL_CANCEL_ALL_WAITEVENTSVBOXGUEST_IOCTL_CODE(5, 0)1160 #define VBOXGUEST_IOCTL_CANCEL_ALL_WAITEVENTS VBOXGUEST_IOCTL_CODE(5, 0) 1160 1161 1161 1162 /** … … 1189 1190 * @remark The data buffer for this IOCtl has an variable size, keep this in mind 1190 1191 * on systems where this matters. */ 1191 # define VBOXGUEST_IOCTL_VMMREQUEST(Size)VBOXGUEST_IOCTL_CODE(3, (Size))1192 # define IOCTL_VBOXGUEST_VMMREQUESTVBOXGUEST_IOCTL_VMMREQUEST(sizeof(VMMDevRequestHeader))1192 #define VBOXGUEST_IOCTL_VMMREQUEST(Size) VBOXGUEST_IOCTL_CODE(3, (Size)) 1193 #define IOCTL_VBOXGUEST_VMMREQUEST VBOXGUEST_IOCTL_VMMREQUEST(sizeof(VMMDevRequestHeader)) 1193 1194 1194 1195 /** Input and output buffer layout of the IOCTL_VBOXGUEST_CTL_FILTER_MASK. */ … … 1201 1202 1202 1203 /** IOCTL to VBoxGuest to control event filter mask. */ 1203 # define VBOXGUEST_IOCTL_CTL_FILTER_MASKVBOXGUEST_IOCTL_CODE(4, sizeof(VBoxGuestFilterMaskInfo))1204 # define IOCTL_VBOXGUEST_CTL_FILTER_MASKVBOXGUEST_IOCTL_CTL_FILTER_MASK1204 #define VBOXGUEST_IOCTL_CTL_FILTER_MASK VBOXGUEST_IOCTL_CODE(4, sizeof(VBoxGuestFilterMaskInfo)) 1205 #define IOCTL_VBOXGUEST_CTL_FILTER_MASK VBOXGUEST_IOCTL_CTL_FILTER_MASK 1205 1206 1206 1207 /** IOCTL to VBoxGuest to check memory ballooning. */ 1207 # define VBOXGUEST_IOCTL_CTL_CHECK_BALLOON_MASKVBOXGUEST_IOCTL_CODE(7, 100)1208 # define IOCTL_VBOXGUEST_CTL_CHECK_BALLOONVBOXGUEST_IOCTL_CTL_CHECK_BALLOON_MASK1208 #define VBOXGUEST_IOCTL_CTL_CHECK_BALLOON_MASK VBOXGUEST_IOCTL_CODE(7, 100) 1209 #define IOCTL_VBOXGUEST_CTL_CHECK_BALLOON VBOXGUEST_IOCTL_CTL_CHECK_BALLOON_MASK 1209 1210 1210 1211 /** IOCTL to VBoxGuest to perform backdoor logging. */ 1211 # define VBOXGUEST_IOCTL_LOG(Size)VBOXGUEST_IOCTL_CODE(6, (Size))1212 #define VBOXGUEST_IOCTL_LOG(Size) VBOXGUEST_IOCTL_CODE(6, (Size)) 1212 1213 1213 1214 … … 1216 1217 * therefore packing must be defined explicitely. 1217 1218 */ 1218 # pragma pack(1)1219 # pragma pack(1) 1219 1220 typedef struct _VBoxGuestHGCMConnectInfo 1220 1221 { … … 1238 1239 /* Parameters follow in form HGCMFunctionParameter aParms[cParms] */ 1239 1240 } VBoxGuestHGCMCallInfo; 1240 # pragma pack()1241 # pragma pack() 1241 1242 1242 1243 # define VBOXGUEST_IOCTL_HGCM_CONNECT VBOXGUEST_IOCTL_CODE(16, sizeof(VBoxGuestHGCMConnectInfo)) … … 1249 1250 # define IOCTL_VBOXGUEST_CLIPBOARD_CONNECT VBOXGUEST_IOCTL_CLIPBOARD_CONNECT 1250 1251 1251 # define VBOXGUEST_HGCM_CALL_PARMS(a)((HGCMFunctionParameter *)((uint8_t *)(a) + sizeof (VBoxGuestHGCMCallInfo)))1252 # define VBOXGUEST_HGCM_CALL_PARMS(a) ((HGCMFunctionParameter *)((uint8_t *)(a) + sizeof (VBoxGuestHGCMCallInfo))) 1252 1253 1253 1254 #endif /* VBOX_HGCM */
Note:
See TracChangeset
for help on using the changeset viewer.