Changeset 55645 in vbox
- Timestamp:
- May 4, 2015 1:39:18 PM (9 years ago)
- Location:
- trunk/src/VBox/Main/src-client
- Files:
-
- 6 edited
-
GuestCtrlImpl.cpp (modified) (1 diff)
-
GuestDirectoryImpl.cpp (modified) (8 diffs)
-
GuestFileImpl.cpp (modified) (22 diffs)
-
GuestFsObjInfoImpl.cpp (modified) (4 diffs)
-
GuestProcessImpl.cpp (modified) (26 diffs)
-
GuestSessionImpl.cpp (modified) (65 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestCtrlImpl.cpp
r55644 r55645 51 51 #include <VBox/log.h> 52 52 53 54 /* 55 * This #ifdef goes almost to the end of the file where there are a couple of 56 * IGuest method implementations. 57 */ 53 58 #ifdef VBOX_WITH_GUEST_CONTROL 59 54 60 55 61 // public methods only for internal purposes -
trunk/src/VBox/Main/src-client/GuestDirectoryImpl.cpp
r55535 r55645 1 2 1 /* $Id$ */ 3 2 /** @file … … 6 5 7 6 /* 8 * Copyright (C) 2012-201 3Oracle Corporation7 * Copyright (C) 2012-2015 Oracle Corporation 9 8 * 10 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 21 20 * Header Files * 22 21 *******************************************************************************/ 22 #ifndef VBOX_WITH_GUEST_CONTROL 23 # error "VBOX_WITH_GUEST_CONTROL must defined in this file" 24 #endif 23 25 #include "GuestDirectoryImpl.h" 24 26 #include "GuestSessionImpl.h" … … 73 75 AssertReturn(autoInitSpan.isOk(), E_FAIL); 74 76 75 #ifndef VBOX_WITH_GUEST_CONTROL76 autoInitSpan.setSucceeded();77 return VINF_SUCCESS;78 #else79 77 int vrc = bindToSession(pConsole, pSession, uDirID /* Object ID */); 80 78 if (RT_SUCCESS(vrc)) … … 124 122 125 123 return vrc; 126 #endif /* VBOX_WITH_GUEST_CONTROL */127 124 } 128 125 … … 265 262 HRESULT GuestDirectory::close() 266 263 { 267 #ifndef VBOX_WITH_GUEST_CONTROL268 ReturnComNotImplemented();269 #else270 264 LogFlowThisFuncEnter(); 271 265 … … 305 299 LogFlowThisFunc(("Returning rc=%Rrc\n", rc)); 306 300 return hr; 307 #endif /* VBOX_WITH_GUEST_CONTROL */308 301 } 309 302 310 303 HRESULT GuestDirectory::read(ComPtr<IFsObjInfo> &aObjInfo) 311 304 { 312 #ifndef VBOX_WITH_GUEST_CONTROL313 ReturnComNotImplemented();314 #else315 305 LogFlowThisFuncEnter(); 316 306 … … 407 397 LogFlowThisFunc(("Returning rc=%Rrc\n", rc)); 408 398 return hr; 409 #endif /* VBOX_WITH_GUEST_CONTROL */ 410 } 411 399 } 400 -
trunk/src/VBox/Main/src-client/GuestFileImpl.cpp
r55631 r55645 5 5 6 6 /* 7 * Copyright (C) 2012-201 3Oracle Corporation7 * Copyright (C) 2012-2015 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 20 20 * Header Files * 21 21 *******************************************************************************/ 22 #ifndef VBOX_WITH_GUEST_CONTROL 23 # error "VBOX_WITH_GUEST_CONTROL must defined in this file" 24 #endif 22 25 #include "GuestFileImpl.h" 23 26 #include "GuestSessionImpl.h" … … 146 149 AssertReturn(autoInitSpan.isOk(), VERR_OBJECT_DESTROYED); 147 150 148 #ifndef VBOX_WITH_GUEST_CONTROL149 autoInitSpan.setSucceeded();150 return VINF_SUCCESS;151 #else152 151 int vrc = bindToSession(pConsole, pSession, uFileID /* Object ID */); 153 152 if (RT_SUCCESS(vrc)) … … 216 215 LogFlowFuncLeaveRC(vrc); 217 216 return vrc; 218 #endif /* VBOX_WITH_GUEST_CONTROL */219 217 } 220 218 … … 232 230 LogFlowThisFuncEnter(); 233 231 234 #ifdef VBOX_WITH_GUEST_CONTROL235 232 baseUninit(); 236 #endif237 233 LogFlowThisFuncLeave(); 238 234 } … … 243 239 HRESULT GuestFile::getCreationMode(ULONG *aCreationMode) 244 240 { 245 #ifndef VBOX_WITH_GUEST_CONTROL246 ReturnComNotImplemented();247 #else248 241 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 249 242 … … 251 244 252 245 return S_OK; 253 #endif /* VBOX_WITH_GUEST_CONTROL */254 246 } 255 247 256 248 HRESULT GuestFile::getOpenAction(FileOpenAction_T *aOpenAction) 257 249 { 258 #ifndef VBOX_WITH_GUEST_CONTROL259 ReturnComNotImplemented();260 #else261 250 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 262 251 … … 264 253 265 254 return S_OK; 266 #endif /* VBOX_WITH_GUEST_CONTROL */267 255 } 268 256 269 257 HRESULT GuestFile::getEventSource(ComPtr<IEventSource> &aEventSource) 270 258 { 271 #ifndef VBOX_WITH_GUEST_CONTROL272 ReturnComNotImplemented();273 #else274 259 /* No need to lock - lifetime constant. */ 275 260 mEventSource.queryInterfaceTo(aEventSource.asOutParam()); 276 261 277 262 return S_OK; 278 #endif /* VBOX_WITH_GUEST_CONTROL */279 263 } 280 264 281 265 HRESULT GuestFile::getFileName(com::Utf8Str &aFileName) 282 266 { 283 #ifndef VBOX_WITH_GUEST_CONTROL284 ReturnComNotImplemented();285 #else286 267 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 287 268 … … 289 270 290 271 return S_OK; 291 #endif /* VBOX_WITH_GUEST_CONTROL */292 272 } 293 273 294 274 HRESULT GuestFile::getId(ULONG *aId) 295 275 { 296 #ifndef VBOX_WITH_GUEST_CONTROL297 ReturnComNotImplemented();298 #else299 276 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 300 277 … … 302 279 303 280 return S_OK; 304 #endif /* VBOX_WITH_GUEST_CONTROL */305 281 } 306 282 307 283 HRESULT GuestFile::getInitialSize(LONG64 *aInitialSize) 308 284 { 309 #ifndef VBOX_WITH_GUEST_CONTROL310 ReturnComNotImplemented();311 #else312 285 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 313 286 … … 315 288 316 289 return S_OK; 317 #endif /* VBOX_WITH_GUEST_CONTROL */318 290 } 319 291 320 292 HRESULT GuestFile::getOffset(LONG64 *aOffset) 321 293 { 322 #ifndef VBOX_WITH_GUEST_CONTROL323 ReturnComNotImplemented();324 #else325 294 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 326 295 … … 328 297 329 298 return S_OK; 330 #endif /* VBOX_WITH_GUEST_CONTROL */331 299 } 332 300 333 301 HRESULT GuestFile::getAccessMode(FileAccessMode_T *aAccessMode) 334 302 { 335 #ifndef VBOX_WITH_GUEST_CONTROL336 ReturnComNotImplemented();337 #else338 303 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 339 304 … … 341 306 342 307 return S_OK; 343 #endif /* VBOX_WITH_GUEST_CONTROL */344 308 } 345 309 346 310 HRESULT GuestFile::getStatus(FileStatus_T *aStatus) 347 311 { 348 #ifndef VBOX_WITH_GUEST_CONTROL349 ReturnComNotImplemented();350 #else351 312 LogFlowThisFuncEnter(); 352 313 … … 356 317 357 318 return S_OK; 358 #endif /* VBOX_WITH_GUEST_CONTROL */359 319 } 360 320 … … 1224 1184 HRESULT GuestFile::close() 1225 1185 { 1226 #ifndef VBOX_WITH_GUEST_CONTROL1227 ReturnComNotImplemented();1228 #else1229 1186 LogFlowThisFuncEnter(); 1230 1187 … … 1251 1208 LogFlowThisFunc(("Returning rc=%Rrc\n", rc)); 1252 1209 return S_OK; 1253 #endif /* VBOX_WITH_GUEST_CONTROL */1254 1210 } 1255 1211 1256 1212 HRESULT GuestFile::queryInfo(ComPtr<IFsObjInfo> &aObjInfo) 1257 1213 { 1258 #ifndef VBOX_WITH_GUEST_CONTROL1259 1214 ReturnComNotImplemented(); 1260 #else 1215 } 1216 1217 HRESULT GuestFile::querySize(LONG64 *aSize) 1218 { 1261 1219 ReturnComNotImplemented(); 1262 #endif /* VBOX_WITH_GUEST_CONTROL */1263 }1264 1265 HRESULT GuestFile::querySize(LONG64 *aSize)1266 {1267 #ifndef VBOX_WITH_GUEST_CONTROL1268 ReturnComNotImplemented();1269 #else1270 ReturnComNotImplemented();1271 #endif /* VBOX_WITH_GUEST_CONTROL */1272 1220 } 1273 1221 1274 1222 HRESULT GuestFile::read(ULONG aToRead, ULONG aTimeoutMS, std::vector<BYTE> &aData) 1275 1223 { 1276 #ifndef VBOX_WITH_GUEST_CONTROL1277 ReturnComNotImplemented();1278 #else1279 1224 if (aToRead == 0) 1280 1225 return setError(E_INVALIDARG, tr("The size to read is zero")); … … 1309 1254 LogFlowFuncLeaveRC(vrc); 1310 1255 return hr; 1311 #endif /* VBOX_WITH_GUEST_CONTROL */1312 1256 } 1313 1257 HRESULT GuestFile::readAt(LONG64 aOffset, ULONG aToRead, ULONG aTimeoutMS, std::vector<BYTE> &aData) 1314 1258 1315 1259 { 1316 #ifndef VBOX_WITH_GUEST_CONTROL1317 ReturnComNotImplemented();1318 #else1319 1260 if (aToRead == 0) 1320 1261 return setError(E_INVALIDARG, tr("The size to read is zero")); … … 1348 1289 LogFlowFuncLeaveRC(vrc); 1349 1290 return hr; 1350 #endif /* VBOX_WITH_GUEST_CONTROL */1351 1291 } 1352 1292 1353 1293 HRESULT GuestFile::seek(LONG64 aOffset, FileSeekOrigin_T aWhence, LONG64 *aNewOffset) 1354 1294 { 1355 #ifndef VBOX_WITH_GUEST_CONTROL1356 ReturnComNotImplemented();1357 #else1358 1295 LogFlowThisFuncEnter(); 1359 1296 … … 1399 1336 LogFlowFuncLeaveRC(vrc); 1400 1337 return hr; 1401 #endif /* VBOX_WITH_GUEST_CONTROL */1402 1338 } 1403 1339 1404 1340 HRESULT GuestFile::setACL(const com::Utf8Str &aAcl, ULONG aMode) 1405 1341 { 1406 #ifndef VBOX_WITH_GUEST_CONTROL1407 1342 ReturnComNotImplemented(); 1408 #else 1343 } 1344 1345 HRESULT GuestFile::setSize(LONG64 aSize) 1346 { 1409 1347 ReturnComNotImplemented(); 1410 #endif /* VBOX_WITH_GUEST_CONTROL */1411 }1412 1413 HRESULT GuestFile::setSize(LONG64 aSize)1414 {1415 #ifndef VBOX_WITH_GUEST_CONTROL1416 ReturnComNotImplemented();1417 #else1418 ReturnComNotImplemented();1419 #endif /* VBOX_WITH_GUEST_CONTROL */1420 1348 } 1421 1349 1422 1350 HRESULT GuestFile::write(const std::vector<BYTE> &aData, ULONG aTimeoutMS, ULONG *aWritten) 1423 1351 { 1424 #ifndef VBOX_WITH_GUEST_CONTROL1425 ReturnComNotImplemented();1426 #else1427 1352 LogFlowThisFuncEnter(); 1428 1353 … … 1447 1372 LogFlowFuncLeaveRC(vrc); 1448 1373 return hr; 1449 #endif /* VBOX_WITH_GUEST_CONTROL */1450 1374 } 1451 1375 … … 1453 1377 1454 1378 { 1455 #ifndef VBOX_WITH_GUEST_CONTROL1456 ReturnComNotImplemented();1457 #else1458 1379 LogFlowThisFuncEnter(); 1459 1380 … … 1478 1399 LogFlowFuncLeaveRC(vrc); 1479 1400 return hr; 1480 #endif /* VBOX_WITH_GUEST_CONTROL */ 1481 } 1482 1401 } 1402 -
trunk/src/VBox/Main/src-client/GuestFsObjInfoImpl.cpp
r55613 r55645 5 5 6 6 /* 7 * Copyright (C) 2012-201 4Oracle Corporation7 * Copyright (C) 2012-2015 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 20 20 * Header Files * 21 21 *******************************************************************************/ 22 #ifndef VBOX_WITH_GUEST_CONTROL 23 # error "VBOX_WITH_GUEST_CONTROL must defined in this file" 24 #endif 22 25 #include "GuestFsObjInfoImpl.h" 23 26 #include "GuestCtrlImplPrivate.h" … … 92 95 HRESULT GuestFsObjInfo::getAccessTime(LONG64 *aAccessTime) 93 96 { 94 #ifndef VBOX_WITH_GUEST_CONTROL95 ReturnComNotImplemented();96 #else97 98 97 *aAccessTime = mData.mAccessTime; 99 98 100 99 return S_OK; 101 #endif /* VBOX_WITH_GUEST_CONTROL */102 100 } 103 101 104 102 HRESULT GuestFsObjInfo::getAllocatedSize(LONG64 *aAllocatedSize) 105 103 { 106 #ifndef VBOX_WITH_GUEST_CONTROL107 ReturnComNotImplemented();108 #else109 110 104 *aAllocatedSize = mData.mAllocatedSize; 111 105 112 106 return S_OK; 113 #endif /* VBOX_WITH_GUEST_CONTROL */114 107 } 115 108 116 109 HRESULT GuestFsObjInfo::getBirthTime(LONG64 *aBirthTime) 117 110 { 118 #ifndef VBOX_WITH_GUEST_CONTROL119 ReturnComNotImplemented();120 #else121 122 111 *aBirthTime = mData.mBirthTime; 123 112 124 113 return S_OK; 125 #endif /* VBOX_WITH_GUEST_CONTROL */126 114 } 127 115 128 116 HRESULT GuestFsObjInfo::getChangeTime(LONG64 *aChangeTime) 129 117 { 130 #ifndef VBOX_WITH_GUEST_CONTROL131 ReturnComNotImplemented();132 #else133 134 118 *aChangeTime = mData.mChangeTime; 135 119 136 120 return S_OK; 137 #endif /* VBOX_WITH_GUEST_CONTROL */138 121 } 139 122 … … 142 125 HRESULT GuestFsObjInfo::getDeviceNumber(ULONG *aDeviceNumber) 143 126 { 144 #ifndef VBOX_WITH_GUEST_CONTROL145 ReturnComNotImplemented();146 #else147 148 127 *aDeviceNumber = mData.mDeviceNumber; 149 128 150 129 return S_OK; 151 #endif /* VBOX_WITH_GUEST_CONTROL */152 130 } 153 131 154 132 HRESULT GuestFsObjInfo::getFileAttributes(com::Utf8Str &aFileAttributes) 155 133 { 156 #ifndef VBOX_WITH_GUEST_CONTROL157 ReturnComNotImplemented();158 #else159 160 134 aFileAttributes = mData.mFileAttrs; 161 135 162 136 return S_OK; 163 #endif /* VBOX_WITH_GUEST_CONTROL */164 137 } 165 138 166 139 HRESULT GuestFsObjInfo::getGenerationId(ULONG *aGenerationId) 167 140 { 168 #ifndef VBOX_WITH_GUEST_CONTROL169 ReturnComNotImplemented();170 #else171 172 141 *aGenerationId = mData.mGenerationID; 173 142 174 143 return S_OK; 175 #endif /* VBOX_WITH_GUEST_CONTROL */176 144 } 177 145 178 146 HRESULT GuestFsObjInfo::getGID(ULONG *aGID) 179 147 { 180 #ifndef VBOX_WITH_GUEST_CONTROL181 ReturnComNotImplemented();182 #else183 184 148 *aGID = mData.mGID; 185 149 186 150 return S_OK; 187 #endif /* VBOX_WITH_GUEST_CONTROL */188 151 } 189 152 190 153 HRESULT GuestFsObjInfo::getGroupName(com::Utf8Str &aGroupName) 191 154 { 192 #ifndef VBOX_WITH_GUEST_CONTROL193 ReturnComNotImplemented();194 #else195 196 155 aGroupName = mData.mGroupName; 197 156 198 157 return S_OK; 199 #endif /* VBOX_WITH_GUEST_CONTROL */200 158 } 201 159 202 160 HRESULT GuestFsObjInfo::getHardLinks(ULONG *aHardLinks) 203 161 { 204 #ifndef VBOX_WITH_GUEST_CONTROL205 ReturnComNotImplemented();206 #else207 208 162 *aHardLinks = mData.mNumHardLinks; 209 163 210 164 return S_OK; 211 #endif /* VBOX_WITH_GUEST_CONTROL */212 165 } 213 166 214 167 HRESULT GuestFsObjInfo::getModificationTime(LONG64 *aModificationTime) 215 168 { 216 #ifndef VBOX_WITH_GUEST_CONTROL217 ReturnComNotImplemented();218 #else219 220 169 *aModificationTime = mData.mModificationTime; 221 170 222 171 return S_OK; 223 #endif /* VBOX_WITH_GUEST_CONTROL */224 172 } 225 173 226 174 HRESULT GuestFsObjInfo::getName(com::Utf8Str &aName) 227 175 { 228 #ifndef VBOX_WITH_GUEST_CONTROL229 ReturnComNotImplemented();230 #else231 232 176 aName = mData.mName; 233 177 234 178 return S_OK; 235 #endif /* VBOX_WITH_GUEST_CONTROL */236 179 } 237 180 238 181 HRESULT GuestFsObjInfo::getNodeId(LONG64 *aNodeId) 239 182 { 240 #ifndef VBOX_WITH_GUEST_CONTROL241 ReturnComNotImplemented();242 #else243 244 183 *aNodeId = mData.mNodeID; 245 184 246 185 return S_OK; 247 #endif /* VBOX_WITH_GUEST_CONTROL */248 186 } 249 187 250 188 HRESULT GuestFsObjInfo::getNodeIdDevice(ULONG *aNodeIdDevice) 251 189 { 252 #ifndef VBOX_WITH_GUEST_CONTROL253 ReturnComNotImplemented();254 #else255 256 190 *aNodeIdDevice = mData.mNodeIDDevice; 257 191 258 192 return S_OK; 259 #endif /* VBOX_WITH_GUEST_CONTROL */260 193 } 261 194 262 195 HRESULT GuestFsObjInfo::getObjectSize(LONG64 *aObjectSize) 263 196 { 264 #ifndef VBOX_WITH_GUEST_CONTROL265 ReturnComNotImplemented();266 #else267 268 197 *aObjectSize = mData.mObjectSize; 269 198 270 199 return S_OK; 271 #endif /* VBOX_WITH_GUEST_CONTROL */272 200 } 273 201 274 202 HRESULT GuestFsObjInfo::getType(FsObjType_T *aType) 275 203 { 276 #ifndef VBOX_WITH_GUEST_CONTROL277 ReturnComNotImplemented();278 #else279 280 204 *aType = mData.mType; 281 205 282 206 return S_OK; 283 #endif /* VBOX_WITH_GUEST_CONTROL */284 207 } 285 208 286 209 HRESULT GuestFsObjInfo::getUID(ULONG *aUID) 287 210 { 288 #ifndef VBOX_WITH_GUEST_CONTROL289 ReturnComNotImplemented();290 #else291 292 211 *aUID = mData.mUID; 293 212 294 213 return S_OK; 295 #endif /* VBOX_WITH_GUEST_CONTROL */296 214 } 297 215 298 216 HRESULT GuestFsObjInfo::getUserFlags(ULONG *aUserFlags) 299 217 { 300 #ifndef VBOX_WITH_GUEST_CONTROL301 ReturnComNotImplemented();302 #else303 304 218 *aUserFlags = mData.mUserFlags; 305 219 306 220 return S_OK; 307 #endif /* VBOX_WITH_GUEST_CONTROL */308 221 } 309 222 310 223 HRESULT GuestFsObjInfo::getUserName(com::Utf8Str &aUserName) 311 224 { 312 #ifndef VBOX_WITH_GUEST_CONTROL313 ReturnComNotImplemented();314 #else315 316 225 aUserName = mData.mUserName; 317 226 318 227 return S_OK; 319 #endif /* VBOX_WITH_GUEST_CONTROL */ 320 } 228 } 229 -
trunk/src/VBox/Main/src-client/GuestProcessImpl.cpp
r55613 r55645 5 5 6 6 /* 7 * Copyright (C) 2012-201 3Oracle Corporation7 * Copyright (C) 2012-2015 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 28 28 * Header Files * 29 29 *******************************************************************************/ 30 #ifndef VBOX_WITH_GUEST_CONTROL 31 # error "VBOX_WITH_GUEST_CONTROL must defined in this file" 32 #endif 30 33 #include "GuestProcessImpl.h" 31 34 #include "GuestSessionImpl.h" … … 175 178 AssertReturn(autoInitSpan.isOk(), VERR_OBJECT_DESTROYED); 176 179 177 #ifndef VBOX_WITH_GUEST_CONTROL178 autoInitSpan.setSucceeded();179 return VINF_SUCCESS;180 #else181 180 HRESULT hr; 182 181 … … 254 253 autoInitSpan.setFailed(); 255 254 return vrc; 256 #endif257 255 } 258 256 … … 268 266 return; 269 267 270 #ifdef VBOX_WITH_GUEST_CONTROL271 268 LogFlowThisFunc(("mExe=%s, PID=%RU32\n", mData.mProcess.mExecutable.c_str(), mData.mPID)); 272 269 … … 287 284 LogFlowThisFunc(("Returning rc=%Rrc, guestRc=%Rrc\n", 288 285 vrc, guestRc)); 289 #endif290 286 } 291 287 … … 294 290 HRESULT GuestProcess::getArguments(std::vector<com::Utf8Str> &aArguments) 295 291 { 296 #ifndef VBOX_WITH_GUEST_CONTROL297 ReturnComNotImplemented();298 #else299 292 LogFlowThisFuncEnter(); 300 293 … … 302 295 aArguments = mData.mProcess.mArguments; 303 296 return S_OK; 304 #endif /* VBOX_WITH_GUEST_CONTROL */305 297 } 306 298 … … 339 331 HRESULT GuestProcess::getEventSource(ComPtr<IEventSource> &aEventSource) 340 332 { 341 #ifndef VBOX_WITH_GUEST_CONTROL342 ReturnComNotImplemented();343 #else344 333 LogFlowThisFuncEnter(); 345 334 … … 349 338 LogFlowThisFuncLeave(); 350 339 return S_OK; 351 #endif /* VBOX_WITH_GUEST_CONTROL */352 340 } 353 341 354 342 HRESULT GuestProcess::getExecutablePath(com::Utf8Str &aExecutablePath) 355 343 { 356 #ifndef VBOX_WITH_GUEST_CONTROL357 ReturnComNotImplemented();358 #else359 344 LogFlowThisFuncEnter(); 360 345 … … 364 349 365 350 return S_OK; 366 #endif /* VBOX_WITH_GUEST_CONTROL */367 351 } 368 352 369 353 HRESULT GuestProcess::getExitCode(LONG *aExitCode) 370 354 { 371 #ifndef VBOX_WITH_GUEST_CONTROL372 ReturnComNotImplemented();373 #else374 355 LogFlowThisFuncEnter(); 375 356 … … 379 360 380 361 return S_OK; 381 #endif /* VBOX_WITH_GUEST_CONTROL */382 362 } 383 363 384 364 HRESULT GuestProcess::getName(com::Utf8Str &aName) 385 365 { 386 #ifndef VBOX_WITH_GUEST_CONTROL387 ReturnComNotImplemented();388 #else389 366 LogFlowThisFuncEnter(); 390 367 … … 394 371 395 372 return S_OK; 396 #endif /* VBOX_WITH_GUEST_CONTROL */397 373 } 398 374 399 375 HRESULT GuestProcess::getPID(ULONG *aPID) 400 376 { 401 #ifndef VBOX_WITH_GUEST_CONTROL402 ReturnComNotImplemented();403 #else404 377 LogFlowThisFuncEnter(); 405 378 … … 409 382 410 383 return S_OK; 411 #endif /* VBOX_WITH_GUEST_CONTROL */412 384 } 413 385 414 386 HRESULT GuestProcess::getStatus(ProcessStatus_T *aStatus) 415 387 { 416 #ifndef VBOX_WITH_GUEST_CONTROL417 ReturnComNotImplemented();418 #else419 388 LogFlowThisFuncEnter(); 420 389 … … 424 393 425 394 return S_OK; 426 #endif /* VBOX_WITH_GUEST_CONTROL */427 395 } 428 396 … … 1756 1724 HRESULT GuestProcess::read(ULONG aHandle, ULONG aToRead, ULONG aTimeoutMS, std::vector<BYTE> &aData) 1757 1725 { 1758 #ifndef VBOX_WITH_GUEST_CONTROL1759 ReturnComNotImplemented();1760 #else1761 1726 LogFlowThisFuncEnter(); 1762 1727 … … 1797 1762 LogFlowFuncLeaveRC(vrc); 1798 1763 return hr; 1799 #endif /* VBOX_WITH_GUEST_CONTROL */1800 1764 } 1801 1765 1802 1766 HRESULT GuestProcess::terminate() 1803 1767 { 1804 #ifndef VBOX_WITH_GUEST_CONTROL1805 ReturnComNotImplemented();1806 #else1807 1808 1768 HRESULT hr = S_OK; 1809 1769 … … 1842 1802 LogFlowFuncLeaveRC(vrc); 1843 1803 return hr; 1844 #endif /* VBOX_WITH_GUEST_CONTROL */1845 1804 } 1846 1805 … … 1849 1808 ProcessWaitResult_T *aReason) 1850 1809 { 1851 #ifndef VBOX_WITH_GUEST_CONTROL1852 ReturnComNotImplemented();1853 #else1854 1855 1810 /* 1856 1811 * Note: Do not hold any locks here while waiting! … … 1887 1842 LogFlowFuncLeaveRC(vrc); 1888 1843 return hr; 1889 #endif /* VBOX_WITH_GUEST_CONTROL */1890 1844 } 1891 1845 … … 1893 1847 ULONG aTimeoutMS, ProcessWaitResult_T *aReason) 1894 1848 { 1895 #ifndef VBOX_WITH_GUEST_CONTROL1896 ReturnComNotImplemented();1897 #else1898 1849 /* 1899 1850 * Note: Do not hold any locks here while waiting! … … 1904 1855 1905 1856 return WaitFor(fWaitFor, aTimeoutMS, aReason); 1906 #endif /* VBOX_WITH_GUEST_CONTROL */1907 1857 } 1908 1858 … … 1910 1860 ULONG aTimeoutMS, ULONG *aWritten) 1911 1861 { 1912 #ifndef VBOX_WITH_GUEST_CONTROL1913 ReturnComNotImplemented();1914 #else1915 1862 LogFlowThisFuncEnter(); 1916 1863 … … 1943 1890 LogFlowFuncLeaveRC(vrc); 1944 1891 return hr; 1945 #endif /* VBOX_WITH_GUEST_CONTROL */1946 1892 } 1947 1893 … … 1949 1895 const std::vector<BYTE> &aData, ULONG aTimeoutMS, ULONG *aWritten) 1950 1896 { 1951 #ifndef VBOX_WITH_GUEST_CONTROL1952 ReturnComNotImplemented();1953 #else1954 1897 LogFlowThisFuncEnter(); 1955 1898 … … 1962 1905 1963 1906 return write(aHandle, fWrite, aData, aTimeoutMS, aWritten); 1964 #endif /* VBOX_WITH_GUEST_CONTROL */1965 1907 } 1966 1908 -
trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp
r55633 r55645 5 5 6 6 /* 7 * Copyright (C) 2012-201 4Oracle Corporation7 * Copyright (C) 2012-2015 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 21 21 *******************************************************************************/ 22 22 #include "GuestImpl.h" 23 #ifndef VBOX_WITH_GUEST_CONTROL 24 # error "VBOX_WITH_GUEST_CONTROL must defined in this file" 25 #endif 23 26 #include "GuestSessionImpl.h" 24 27 #include "GuestCtrlImplPrivate.h" … … 177 180 AssertReturn(autoInitSpan.isOk(), VERR_OBJECT_DESTROYED); 178 181 179 #ifndef VBOX_WITH_GUEST_CONTROL180 autoInitSpan.setSucceeded();181 return VINF_SUCCESS;182 #else183 182 AssertPtrReturn(pGuest, VERR_INVALID_POINTER); 184 183 … … 264 263 mData.mSession.mName.c_str(), mData.mSession.mID, mData.mSession.mIsInternal, rc)); 265 264 return rc; 266 #endif /* VBOX_WITH_GUEST_CONTROL */267 265 } 268 266 … … 282 280 int rc = VINF_SUCCESS; 283 281 284 #ifdef VBOX_WITH_GUEST_CONTROL285 282 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 286 283 … … 333 330 334 331 baseUninit(); 335 #endif /* VBOX_WITH_GUEST_CONTROL */ 332 336 333 LogFlowFuncLeaveRC(rc); 337 334 } … … 342 339 HRESULT GuestSession::getUser(com::Utf8Str &aUser) 343 340 { 344 #ifndef VBOX_WITH_GUEST_CONTROL345 ReturnComNotImplemented();346 #else347 348 341 LogFlowThisFuncEnter(); 349 342 … … 354 347 LogFlowThisFuncLeave(); 355 348 return S_OK; 356 #endif /* VBOX_WITH_GUEST_CONTROL */357 349 } 358 350 359 351 HRESULT GuestSession::getDomain(com::Utf8Str &aDomain) 360 352 { 361 #ifndef VBOX_WITH_GUEST_CONTROL362 ReturnComNotImplemented();363 #else364 353 LogFlowThisFuncEnter(); 365 354 … … 370 359 LogFlowThisFuncLeave(); 371 360 return S_OK; 372 #endif /* VBOX_WITH_GUEST_CONTROL */373 361 } 374 362 375 363 HRESULT GuestSession::getName(com::Utf8Str &aName) 376 364 { 377 #ifndef VBOX_WITH_GUEST_CONTROL378 ReturnComNotImplemented();379 #else380 365 LogFlowThisFuncEnter(); 381 366 … … 386 371 LogFlowThisFuncLeave(); 387 372 return S_OK; 388 #endif /* VBOX_WITH_GUEST_CONTROL */389 373 } 390 374 391 375 HRESULT GuestSession::getId(ULONG *aId) 392 376 { 393 #ifndef VBOX_WITH_GUEST_CONTROL394 ReturnComNotImplemented();395 #else396 377 LogFlowThisFuncEnter(); 397 378 … … 402 383 LogFlowThisFuncLeave(); 403 384 return S_OK; 404 #endif /* VBOX_WITH_GUEST_CONTROL */405 385 } 406 386 407 387 HRESULT GuestSession::getStatus(GuestSessionStatus_T *aStatus) 408 388 { 409 #ifndef VBOX_WITH_GUEST_CONTROL410 ReturnComNotImplemented();411 #else412 389 LogFlowThisFuncEnter(); 413 390 … … 418 395 LogFlowThisFuncLeave(); 419 396 return S_OK; 420 #endif /* VBOX_WITH_GUEST_CONTROL */421 397 } 422 398 423 399 HRESULT GuestSession::getTimeout(ULONG *aTimeout) 424 400 { 425 #ifndef VBOX_WITH_GUEST_CONTROL426 ReturnComNotImplemented();427 #else428 401 LogFlowThisFuncEnter(); 429 402 … … 434 407 LogFlowThisFuncLeave(); 435 408 return S_OK; 436 #endif /* VBOX_WITH_GUEST_CONTROL */437 409 } 438 410 439 411 HRESULT GuestSession::setTimeout(ULONG aTimeout) 440 412 { 441 #ifndef VBOX_WITH_GUEST_CONTROL442 ReturnComNotImplemented();443 #else444 413 LogFlowThisFuncEnter(); 445 414 … … 450 419 LogFlowThisFuncLeave(); 451 420 return S_OK; 452 #endif /* VBOX_WITH_GUEST_CONTROL */453 421 } 454 422 455 423 HRESULT GuestSession::getProtocolVersion(ULONG *aProtocolVersion) 456 424 { 457 #ifndef VBOX_WITH_GUEST_CONTROL458 ReturnComNotImplemented();459 #else460 425 LogFlowThisFuncEnter(); 461 426 … … 466 431 LogFlowThisFuncLeave(); 467 432 return S_OK; 468 #endif /* VBOX_WITH_GUEST_CONTROL */469 433 } 470 434 471 435 HRESULT GuestSession::getEnvironmentChanges(std::vector<com::Utf8Str> &aEnvironmentChanges) 472 436 { 473 #ifndef VBOX_WITH_GUEST_CONTROL474 ReturnComNotImplemented();475 #else476 437 LogFlowThisFuncEnter(); 477 438 … … 482 443 LogFlowFuncLeaveRC(vrc); 483 444 return Global::vboxStatusCodeToCOM(vrc); 484 #endif /* VBOX_WITH_GUEST_CONTROL */485 445 } 486 446 487 447 HRESULT GuestSession::setEnvironmentChanges(const std::vector<com::Utf8Str> &aEnvironmentChanges) 488 448 { 489 #ifndef VBOX_WITH_GUEST_CONTROL490 ReturnComNotImplemented();491 #else492 449 LogFlowThisFuncEnter(); 493 450 … … 499 456 LogFlowFuncLeaveRC(vrc); 500 457 return Global::vboxStatusCodeToCOM(vrc); 501 #endif /* VBOX_WITH_GUEST_CONTROL */502 458 } 503 459 504 460 HRESULT GuestSession::getEnvironmentBase(std::vector<com::Utf8Str> &aEnvironmentBase) 505 461 { 506 #ifndef VBOX_WITH_GUEST_CONTROL507 ReturnComNotImplemented();508 #else509 462 LogFlowThisFuncEnter(); 510 463 … … 523 476 LogFlowFuncLeave(); 524 477 return hrc; 525 #endif /* VBOX_WITH_GUEST_CONTROL */526 478 } 527 479 528 480 HRESULT GuestSession::getProcesses(std::vector<ComPtr<IGuestProcess> > &aProcesses) 529 481 { 530 #ifndef VBOX_WITH_GUEST_CONTROL531 ReturnComNotImplemented();532 #else533 482 LogFlowThisFuncEnter(); 534 483 … … 546 495 LogFlowFunc(("mProcesses=%zu\n", aProcesses.size())); 547 496 return S_OK; 548 #endif /* VBOX_WITH_GUEST_CONTROL */549 497 } 550 498 551 499 HRESULT GuestSession::getPathStyle(PathStyle_T *aPathStyle) 552 500 { 553 #ifndef VBOX_WITH_GUEST_CONTROL554 ReturnComNotImplemented();555 #else556 501 VBOXOSTYPE enmOsType = mParent->i_getGuestOSType(); 557 502 if ( enmOsType < VBOXOSTYPE_DOS) … … 571 516 } 572 517 return S_OK; 573 #endif574 518 } 575 519 … … 586 530 HRESULT GuestSession::getDirectories(std::vector<ComPtr<IGuestDirectory> > &aDirectories) 587 531 { 588 #ifndef VBOX_WITH_GUEST_CONTROL589 ReturnComNotImplemented();590 #else591 532 LogFlowThisFuncEnter(); 592 533 … … 604 545 LogFlowFunc(("mDirectories=%zu\n", aDirectories.size())); 605 546 return S_OK; 606 #endif /* VBOX_WITH_GUEST_CONTROL */607 547 } 608 548 609 549 HRESULT GuestSession::getFiles(std::vector<ComPtr<IGuestFile> > &aFiles) 610 550 { 611 #ifndef VBOX_WITH_GUEST_CONTROL612 ReturnComNotImplemented();613 #else614 551 LogFlowThisFuncEnter(); 615 552 … … 624 561 625 562 return S_OK; 626 #endif /* VBOX_WITH_GUEST_CONTROL */627 563 } 628 564 629 565 HRESULT GuestSession::getEventSource(ComPtr<IEventSource> &aEventSource) 630 566 { 631 #ifndef VBOX_WITH_GUEST_CONTROL632 ReturnComNotImplemented();633 #else634 567 LogFlowThisFuncEnter(); 635 568 … … 639 572 LogFlowThisFuncLeave(); 640 573 return S_OK; 641 #endif /* VBOX_WITH_GUEST_CONTROL */642 574 } 643 575 … … 2458 2390 HRESULT GuestSession::close() 2459 2391 { 2460 #ifndef VBOX_WITH_GUEST_CONTROL2461 ReturnComNotImplemented();2462 #else2463 2392 LogFlowThisFuncEnter(); 2464 2393 … … 2493 2422 2494 2423 return S_OK; 2495 #endif /* VBOX_WITH_GUEST_CONTROL */2496 2424 } 2497 2425 … … 2506 2434 ComPtr<IProgress> &aProgress) 2507 2435 { 2508 #ifndef VBOX_WITH_GUEST_CONTROL2509 ReturnComNotImplemented();2510 #else2511 2512 2436 LogFlowThisFuncEnter(); 2513 2437 … … 2549 2473 2550 2474 return hr; 2551 #endif /* VBOX_WITH_GUEST_CONTROL */2552 2475 } 2553 2476 … … 2555 2478 const std::vector<FileCopyFlag_T> &aFlags, ComPtr<IProgress> &aProgress) 2556 2479 { 2557 #ifndef VBOX_WITH_GUEST_CONTROL2558 ReturnComNotImplemented();2559 #else2560 2561 2480 LogFlowThisFuncEnter(); 2562 2481 … … 2601 2520 2602 2521 return hr; 2603 #endif /* VBOX_WITH_GUEST_CONTROL */2604 2522 } 2605 2523 … … 2625 2543 const std::vector<DirectoryCreateFlag_T> &aFlags) 2626 2544 { 2627 #ifndef VBOX_WITH_GUEST_CONTROL2628 ReturnComNotImplemented();2629 #else2630 2545 LogFlowThisFuncEnter(); 2631 2546 … … 2672 2587 2673 2588 return hr; 2674 #endif /* VBOX_WITH_GUEST_CONTROL */2675 2589 } 2676 2590 … … 2678 2592 BOOL aSecure, com::Utf8Str &aDirectory) 2679 2593 { 2680 #ifndef VBOX_WITH_GUEST_CONTROL2681 ReturnComNotImplemented();2682 #else2683 2594 LogFlowThisFuncEnter(); 2684 2595 … … 2710 2621 2711 2622 return hr; 2712 #endif /* VBOX_WITH_GUEST_CONTROL */2713 2623 } 2714 2624 2715 2625 HRESULT GuestSession::directoryExists(const com::Utf8Str &aPath, BOOL aFollowSymlinks, BOOL *aExists) 2716 2626 { 2717 #ifndef VBOX_WITH_GUEST_CONTROL2718 ReturnComNotImplemented();2719 #else2720 2627 LogFlowThisFuncEnter(); 2721 2628 … … 2747 2654 2748 2655 return hr; 2749 #endif /* VBOX_WITH_GUEST_CONTROL */2750 2656 } 2751 2657 … … 2753 2659 const std::vector<DirectoryOpenFlag_T> &aFlags, ComPtr<IGuestDirectory> &aDirectory) 2754 2660 { 2755 #ifndef VBOX_WITH_GUEST_CONTROL2756 ReturnComNotImplemented();2757 #else2758 2661 LogFlowThisFuncEnter(); 2759 2662 … … 2808 2711 2809 2712 return hr; 2810 #endif /* VBOX_WITH_GUEST_CONTROL */2811 2713 } 2812 2714 2813 2715 HRESULT GuestSession::directoryRemove(const com::Utf8Str &aPath) 2814 2716 { 2815 #ifndef VBOX_WITH_GUEST_CONTROL2816 ReturnComNotImplemented();2817 #else2818 2717 LogFlowThisFuncEnter(); 2819 2718 … … 2851 2750 2852 2751 return hr; 2853 #endif /* VBOX_WITH_GUEST_CONTROL */2854 2752 } 2855 2753 … … 2857 2755 ComPtr<IProgress> &aProgress) 2858 2756 { 2859 #ifndef VBOX_WITH_GUEST_CONTROL2860 ReturnComNotImplemented();2861 #else2862 2757 LogFlowThisFuncEnter(); 2863 2758 … … 2919 2814 2920 2815 return hr; 2921 #endif /* VBOX_WITH_GUEST_CONTROL */2922 2816 } 2923 2817 2924 2818 HRESULT GuestSession::environmentScheduleSet(const com::Utf8Str &aName, const com::Utf8Str &aValue) 2925 2819 { 2926 #ifndef VBOX_WITH_GUEST_CONTROL2927 ReturnComNotImplemented();2928 #else2929 2820 LogFlowThisFuncEnter(); 2930 2821 … … 2949 2840 LogFlowThisFuncLeave(); 2950 2841 return hrc; 2951 #endif /* VBOX_WITH_GUEST_CONTROL */2952 2842 } 2953 2843 2954 2844 HRESULT GuestSession::environmentScheduleUnset(const com::Utf8Str &aName) 2955 2845 { 2956 #ifndef VBOX_WITH_GUEST_CONTROL2957 ReturnComNotImplemented();2958 #else2959 2846 LogFlowThisFuncEnter(); 2960 2847 HRESULT hrc; … … 2978 2865 LogFlowThisFuncLeave(); 2979 2866 return hrc; 2980 #endif /* VBOX_WITH_GUEST_CONTROL */2981 2867 } 2982 2868 2983 2869 HRESULT GuestSession::environmentGetBaseVariable(const com::Utf8Str &aName, com::Utf8Str &aValue) 2984 2870 { 2985 #ifndef VBOX_WITH_GUEST_CONTROL2986 ReturnComNotImplemented();2987 #else2988 2871 LogFlowThisFuncEnter(); 2989 2872 HRESULT hrc; … … 3014 2897 LogFlowThisFuncLeave(); 3015 2898 return hrc; 3016 #endif /* VBOX_WITH_GUEST_CONTROL */3017 2899 } 3018 2900 3019 2901 HRESULT GuestSession::environmentDoesBaseVariableExist(const com::Utf8Str &aName, BOOL *aExists) 3020 2902 { 3021 #ifndef VBOX_WITH_GUEST_CONTROL3022 ReturnComNotImplemented();3023 #else3024 2903 LogFlowThisFuncEnter(); 3025 2904 *aExists = FALSE; … … 3048 2927 LogFlowThisFuncLeave(); 3049 2928 return hrc; 3050 #endif /* VBOX_WITH_GUEST_CONTROL */3051 2929 } 3052 2930 … … 3054 2932 ComPtr<IGuestFile> &aFile) 3055 2933 { 3056 #ifndef VBOX_WITH_GUEST_CONTROL3057 2934 ReturnComNotImplemented(); 3058 #else3059 LogFlowThisFuncEnter();3060 3061 3062 ReturnComNotImplemented();3063 #endif /* VBOX_WITH_GUEST_CONTROL */3064 2935 } 3065 2936 3066 2937 HRESULT GuestSession::fileExists(const com::Utf8Str &aPath, BOOL aFollowSymlinks, BOOL *aExists) 3067 2938 { 3068 #ifndef VBOX_WITH_GUEST_CONTROL3069 ReturnComNotImplemented();3070 #else3071 2939 LogFlowThisFuncEnter(); 3072 2940 … … 3104 2972 3105 2973 return hr; 3106 #endif /* VBOX_WITH_GUEST_CONTROL */3107 2974 } 3108 2975 … … 3110 2977 ULONG aCreationMode, ComPtr<IGuestFile> &aFile) 3111 2978 { 3112 #ifndef VBOX_WITH_GUEST_CONTROL3113 ReturnComNotImplemented();3114 #else3115 2979 LogFlowThisFuncEnter(); 3116 2980 return fileOpenEx(aPath, aAccessMode, aOpenAction, FileSharingMode_All, aCreationMode, 0 /* aOffset */, aFile); 3117 #endif /* VBOX_WITH_GUEST_CONTROL */3118 2981 } 3119 2982 … … 3121 2984 FileSharingMode_T aSharingMode, ULONG aCreationMode, LONG64 aOffset, ComPtr<IGuestFile> &aFile) 3122 2985 { 3123 #ifndef VBOX_WITH_GUEST_CONTROL3124 ReturnComNotImplemented();3125 #else3126 2986 LogFlowThisFuncEnter(); 3127 2987 … … 3213 3073 3214 3074 return hr; 3215 #endif /* VBOX_WITH_GUEST_CONTROL */3216 3075 } 3217 3076 3218 3077 HRESULT GuestSession::fileQuerySize(const com::Utf8Str &aPath, BOOL aFollowSymlinks, LONG64 *aSize) 3219 3078 { 3220 #ifndef VBOX_WITH_GUEST_CONTROL3221 ReturnComNotImplemented();3222 #else3223 3079 LogFlowThisFuncEnter(); 3224 3080 … … 3247 3103 3248 3104 return hr; 3249 #endif /* VBOX_WITH_GUEST_CONTROL */3250 3105 } 3251 3106 3252 3107 HRESULT GuestSession::fsObjExists(const com::Utf8Str &aPath, BOOL aFollowSymlinks, BOOL *aExists) 3253 3108 { 3254 #ifndef VBOX_WITH_GUEST_CONTROL3255 ReturnComNotImplemented();3256 #else3257 3109 LogFlowThisFuncEnter(); 3258 3110 … … 3280 3132 LogFlowThisFuncLeave(); 3281 3133 return hrc; 3282 #endif /* VBOX_WITH_GUEST_CONTROL */3283 3134 } 3284 3135 3285 3136 HRESULT GuestSession::fsObjQueryInfo(const com::Utf8Str &aPath, BOOL aFollowSymlinks, ComPtr<IGuestFsObjInfo> &aInfo) 3286 3137 { 3287 #ifndef VBOX_WITH_GUEST_CONTROL3288 ReturnComNotImplemented();3289 #else3290 3138 LogFlowThisFuncEnter(); 3291 3139 … … 3318 3166 LogFlowThisFuncLeave(); 3319 3167 return hrc; 3320 #endif /* VBOX_WITH_GUEST_CONTROL */3321 3168 } 3322 3169 3323 3170 HRESULT GuestSession::fsObjRemove(const com::Utf8Str &aPath) 3324 3171 { 3325 #ifndef VBOX_WITH_GUEST_CONTROL3326 ReturnComNotImplemented();3327 #else3328 3172 LogFlowThisFuncEnter(); 3329 3173 … … 3351 3195 3352 3196 return hr; 3353 #endif /* VBOX_WITH_GUEST_CONTROL */3354 3197 } 3355 3198 … … 3358 3201 const std::vector<FsObjRenameFlag_T> &aFlags) 3359 3202 { 3360 #ifndef VBOX_WITH_GUEST_CONTROL3361 ReturnComNotImplemented();3362 #else3363 3203 LogFlowThisFuncEnter(); 3364 3204 … … 3413 3253 3414 3254 return hr; 3415 #endif /* VBOX_WITH_GUEST_CONTROL */3416 3255 } 3417 3256 … … 3433 3272 ULONG aTimeoutMS, ComPtr<IGuestProcess> &aGuestProcess) 3434 3273 { 3435 #ifndef VBOX_WITH_GUEST_CONTROL3436 ReturnComNotImplemented();3437 #else3438 3274 LogFlowThisFuncEnter(); 3439 3275 … … 3442 3278 return processCreateEx(aExecutable, aArguments, aEnvironment, aFlags, aTimeoutMS, ProcessPriority_Default, 3443 3279 affinityIgnored, aGuestProcess); 3444 #endif /* VBOX_WITH_GUEST_CONTROL */3445 3280 } 3446 3281 … … 3451 3286 ComPtr<IGuestProcess> &aGuestProcess) 3452 3287 { 3453 #ifndef VBOX_WITH_GUEST_CONTROL3454 ReturnComNotImplemented();3455 #else3456 3288 LogFlowThisFuncEnter(); 3457 3289 … … 3552 3384 LogFlowFuncLeaveRC(vrc); 3553 3385 return hr; 3554 #endif /* VBOX_WITH_GUEST_CONTROL */3555 3386 } 3556 3387 … … 3558 3389 3559 3390 { 3560 #ifndef VBOX_WITH_GUEST_CONTROL3561 ReturnComNotImplemented();3562 #else3563 3391 LogFlowThisFunc(("PID=%RU32\n", aPid)); 3564 3392 … … 3582 3410 LogFlowThisFunc(("aProcess=%p, hr=%Rhrc\n", (IGuestProcess*)aGuestProcess, hr)); 3583 3411 return hr; 3584 #endif /* VBOX_WITH_GUEST_CONTROL */3585 3412 } 3586 3413 3587 3414 HRESULT GuestSession::symlinkCreate(const com::Utf8Str &aSource, const com::Utf8Str &aTarget, SymlinkType_T aType) 3588 3415 { 3589 #ifndef VBOX_WITH_GUEST_CONTROL3590 3416 ReturnComNotImplemented(); 3591 #else 3592 LogFlowThisFuncEnter(); 3593 3417 } 3418 3419 HRESULT GuestSession::symlinkExists(const com::Utf8Str &aSymlink, BOOL *aExists) 3420 3421 { 3594 3422 ReturnComNotImplemented(); 3595 #endif /* VBOX_WITH_GUEST_CONTROL */3596 }3597 3598 HRESULT GuestSession::symlinkExists(const com::Utf8Str &aSymlink, BOOL *aExists)3599 3600 {3601 #ifndef VBOX_WITH_GUEST_CONTROL3602 ReturnComNotImplemented();3603 #else3604 LogFlowThisFuncEnter();3605 3606 ReturnComNotImplemented();3607 #endif /* VBOX_WITH_GUEST_CONTROL */3608 3423 } 3609 3424 … … 3611 3426 com::Utf8Str &aTarget) 3612 3427 { 3613 #ifndef VBOX_WITH_GUEST_CONTROL3614 3428 ReturnComNotImplemented(); 3615 #else3616 LogFlowThisFuncEnter();3617 3618 ReturnComNotImplemented();3619 #endif /* VBOX_WITH_GUEST_CONTROL */3620 3429 } 3621 3430 3622 3431 HRESULT GuestSession::waitFor(ULONG aWaitFor, ULONG aTimeoutMS, GuestSessionWaitResult_T *aReason) 3623 3432 { 3624 #ifndef VBOX_WITH_GUEST_CONTROL3625 ReturnComNotImplemented();3626 #else3627 3433 LogFlowThisFuncEnter(); 3628 3434 … … 3661 3467 LogFlowFuncLeaveRC(vrc); 3662 3468 return hr; 3663 #endif /* VBOX_WITH_GUEST_CONTROL */3664 3469 } 3665 3470 … … 3667 3472 GuestSessionWaitResult_T *aReason) 3668 3473 { 3669 #ifndef VBOX_WITH_GUEST_CONTROL3670 ReturnComNotImplemented();3671 #else3672 3474 LogFlowThisFuncEnter(); 3673 3475 … … 3680 3482 3681 3483 return WaitFor(fWaitFor, aTimeoutMS, aReason); 3682 #endif /* VBOX_WITH_GUEST_CONTROL */ 3683 } 3684 3484 } 3485
Note:
See TracChangeset
for help on using the changeset viewer.

