Changeset 42090 in vbox for trunk/src/VBox/Main
- Timestamp:
- Jul 10, 2012 12:19:49 PM (13 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/GuestSessionImpl.h
r42087 r42090 25 25 #include "GuestDirectoryImpl.h" 26 26 #include "GuestFileImpl.h" 27 #include "GuestFsObjInfoImpl.h" 27 28 28 29 /** … … 52 53 /** @name IGuestSession properties. 53 54 * @{ */ 54 STDMETHOD(COMGETTER(User))( BSTR *aName);55 STDMETHOD(COMGETTER(Domain))( BSTR *aDomain);56 STDMETHOD(COMGETTER(Name))( BSTR *aName);55 STDMETHOD(COMGETTER(User))(IN_BSTR *aName); 56 STDMETHOD(COMGETTER(Domain))(IN_BSTR *aDomain); 57 STDMETHOD(COMGETTER(Name))(IN_BSTR *aName); 57 58 STDMETHOD(COMGETTER(Id))(ULONG *aId); 58 59 STDMETHOD(COMGETTER(Timeout))(ULONG *aTimeout); 59 STDMETHOD(COMGETTER(Environment))(ComSafeArrayOut( BSTR, aEnvironment));60 STDMETHOD(COMGETTER(Environment))(ComSafeArrayOut(IN_BSTR, aEnvironment)); 60 61 STDMETHOD(COMGETTER(Processes))(ComSafeArrayOut(IGuestProcess *, aProcesses)); 61 62 STDMETHOD(COMGETTER(Directories))(ComSafeArrayOut(IGuestDirectory *, aDirectories)); … … 66 67 * @{ */ 67 68 STDMETHOD(Close)(void); 68 STDMETHOD(CopyFrom)( BSTR aSource,BSTR aDest, ComSafeArrayIn(ULONG, aFlags), IProgress **aProgress);69 STDMETHOD(CopyTo)( BSTR aSource,BSTR aDest, ComSafeArrayIn(ULONG, aFlags), IProgress **aProgress);70 STDMETHOD(DirectoryCreate)( BSTR aPath, ULONG aMode, ULONG aFlags, IGuestDirectory **aDirectory);71 STDMETHOD(DirectoryCreateTemp)( BSTR aTemplate, ULONG aMode,BSTR aName, IGuestDirectory **aDirectory);72 STDMETHOD(DirectoryExists)( BSTR aPath, BOOL *aExists);73 STDMETHOD(DirectoryOpen)( BSTR aPath, BSTR aFilter,BSTR aFlags, IGuestDirectory **aDirectory);74 STDMETHOD(DirectoryQueryInfo)( BSTR aPath, IGuestFsObjInfo **aInfo);75 STDMETHOD(DirectoryRemove)( BSTR aPath);76 STDMETHOD(DirectoryRemoveRecursive)( BSTR aPath, ComSafeArrayIn(DirectoryRemoveRecFlag, aFlags), IProgress **aProgress);77 STDMETHOD(DirectoryRename)( BSTR aSource,BSTR aDest, ComSafeArrayIn(PathRenameFlag, aFlags));78 STDMETHOD(DirectorySetACL)( BSTR aPath,BSTR aACL);69 STDMETHOD(CopyFrom)(IN_BSTR aSource, IN_BSTR aDest, ComSafeArrayIn(ULONG, aFlags), IProgress **aProgress); 70 STDMETHOD(CopyTo)(IN_BSTR aSource, IN_BSTR aDest, ComSafeArrayIn(ULONG, aFlags), IProgress **aProgress); 71 STDMETHOD(DirectoryCreate)(IN_BSTR aPath, ULONG aMode, ULONG aFlags, IGuestDirectory **aDirectory); 72 STDMETHOD(DirectoryCreateTemp)(IN_BSTR aTemplate, ULONG aMode, IN_BSTR aName, IGuestDirectory **aDirectory); 73 STDMETHOD(DirectoryExists)(IN_BSTR aPath, BOOL *aExists); 74 STDMETHOD(DirectoryOpen)(IN_BSTR aPath, IN_BSTR aFilter, IN_BSTR aFlags, IGuestDirectory **aDirectory); 75 STDMETHOD(DirectoryQueryInfo)(IN_BSTR aPath, IGuestFsObjInfo **aInfo); 76 STDMETHOD(DirectoryRemove)(IN_BSTR aPath); 77 STDMETHOD(DirectoryRemoveRecursive)(IN_BSTR aPath, ComSafeArrayIn(DirectoryRemoveRecFlag, aFlags), IProgress **aProgress); 78 STDMETHOD(DirectoryRename)(IN_BSTR aSource, IN_BSTR aDest, ComSafeArrayIn(PathRenameFlag, aFlags)); 79 STDMETHOD(DirectorySetACL)(IN_BSTR aPath, IN_BSTR aACL); 79 80 STDMETHOD(EnvironmentClear)(void); 80 STDMETHOD(EnvironmentSet)( BSTR aName,BSTR aValue);81 STDMETHOD(EnvironmentSetArray)(ComSafeArrayIn( BSTR, aValues));82 STDMETHOD(EnvironmentUnset)( BSTR aName);83 STDMETHOD(FileCreateTemp)( BSTR aTemplate, ULONG aMode,BSTR aName, IGuestFile **aFile);84 STDMETHOD(FileExists)( BSTR aPath, BOOL *aExists);85 STDMETHOD(FileOpen)( BSTR aPath, BSTR aOpenMode,BSTR aDisposition, ULONG aCreationMode, LONG64 aOffset, IGuestFile **aFile);86 STDMETHOD(FileQueryInfo)( BSTR aPath, IGuestFsObjInfo **aInfo);87 STDMETHOD(FileQuerySize)( BSTR aPath, LONG64 *aSize);88 STDMETHOD(FileRemove)( BSTR aPath);89 STDMETHOD(FileRename)( BSTR aSource,BSTR aDest, ComSafeArrayIn(PathRenameFlag, aFlags));90 STDMETHOD(FileSetACL)( BSTR aPath,BSTR aACL);91 STDMETHOD(ProcessCreate)( BSTR aCommand, ComSafeArrayIn(BSTR, aArguments), ComSafeArrayIn(BSTR, aEnvironment),81 STDMETHOD(EnvironmentSet)(IN_BSTR aName, IN_BSTR aValue); 82 STDMETHOD(EnvironmentSetArray)(ComSafeArrayIn(IN_BSTR, aValues)); 83 STDMETHOD(EnvironmentUnset)(IN_BSTR aName); 84 STDMETHOD(FileCreateTemp)(IN_BSTR aTemplate, ULONG aMode, IN_BSTR aName, IGuestFile **aFile); 85 STDMETHOD(FileExists)(IN_BSTR aPath, BOOL *aExists); 86 STDMETHOD(FileOpen)(IN_BSTR aPath, IN_BSTR aOpenMode, IN_BSTR aDisposition, ULONG aCreationMode, LONG64 aOffset, IGuestFile **aFile); 87 STDMETHOD(FileQueryInfo)(IN_BSTR aPath, IGuestFsObjInfo **aInfo); 88 STDMETHOD(FileQuerySize)(IN_BSTR aPath, LONG64 *aSize); 89 STDMETHOD(FileRemove)(IN_BSTR aPath); 90 STDMETHOD(FileRename)(IN_BSTR aSource, IN_BSTR aDest, ComSafeArrayIn(PathRenameFlag, aFlags)); 91 STDMETHOD(FileSetACL)(IN_BSTR aPath, IN_BSTR aACL); 92 STDMETHOD(ProcessCreate)(IN_BSTR aCommand, ComSafeArrayIn(IN_BSTR, aArguments), ComSafeArrayIn(IN_BSTR, aEnvironment), 92 93 ComSafeArrayIn(ProcessCreateFlag, aFlags), ULONG aTimeoutMS, IGuestProcess **IGuestProcess); 93 STDMETHOD(ProcessCreateEx)( BSTR aCommand, ComSafeArrayIn(BSTR, aArguments), ComSafeArrayIn(BSTR, aEnvironment),94 STDMETHOD(ProcessCreateEx)(IN_BSTR aCommand, ComSafeArrayIn(IN_BSTR, aArguments), ComSafeArrayIn(IN_BSTR, aEnvironment), 94 95 ComSafeArrayIn(ProcessCreateFlag, aFlags), ULONG aTimeoutMS, 95 96 ProcessPriority aPriority, ComSafeArrayIn(ULONG, aAffinity), … … 97 98 STDMETHOD(ProcessGet)(ULONG aPID, IGuestProcess **IGuestProcess); 98 99 STDMETHOD(SetTimeout)(ULONG aTimeoutMS); 99 STDMETHOD(SymlinkCreate)( BSTR aSource,BSTR aTarget, SymlinkType aType);100 STDMETHOD(SymlinkExists)( BSTR aSymlink, BOOL *aExists);101 STDMETHOD(SymlinkRead)( BSTR aSymlink, ComSafeArrayIn(SymlinkReadFlag, aFlags),BSTR *aTarget);102 STDMETHOD(SymlinkRemoveDirectory)( BSTR aPath);103 STDMETHOD(SymlinkRemoveFile)( BSTR aFile);100 STDMETHOD(SymlinkCreate)(IN_BSTR aSource, IN_BSTR aTarget, SymlinkType aType); 101 STDMETHOD(SymlinkExists)(IN_BSTR aSymlink, BOOL *aExists); 102 STDMETHOD(SymlinkRead)(IN_BSTR aSymlink, ComSafeArrayIn(SymlinkReadFlag, aFlags), IN_BSTR *aTarget); 103 STDMETHOD(SymlinkRemoveDirectory)(IN_BSTR aPath); 104 STDMETHOD(SymlinkRemoveFile)(IN_BSTR aFile); 104 105 /** @} */ 105 106 -
trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp
r42087 r42090 84 84 if (autoUninitSpan.uninitDone()) 85 85 return; 86 87 #ifdef VBOX_WITH_GUEST_CONTROL 88 for (SessionFiles::const_iterator itFiles = mData.mFiles.begin(); 89 itFiles != mData.mFiles.end(); ++itFiles) 90 { 91 /** @todo */ 92 } 93 94 for (SessionDirectories::const_iterator itDirs = mData.mDirectories.begin(); 95 itDirs != mData.mDirectories.end(); ++itDirs) 96 { 97 /** @todo */ 98 } 99 100 for (SessionProcesses::const_iterator itProcs = mData.mProcesses.begin(); 101 itProcs != mData.mProcesses.end(); ++itProcs) 102 { 103 /** @todo */ 104 } 105 #endif 86 106 } 87 107 … … 89 109 ///////////////////////////////////////////////////////////////////////////// 90 110 91 STDMETHODIMP GuestSession::COMGETTER(User)( BSTR *aUser)111 STDMETHODIMP GuestSession::COMGETTER(User)(IN_BSTR *aUser) 92 112 { 93 113 #ifndef VBOX_WITH_GUEST_CONTROL … … 107 127 } 108 128 109 STDMETHODIMP GuestSession::COMGETTER(Domain)( BSTR *aDomain)129 STDMETHODIMP GuestSession::COMGETTER(Domain)(IN_BSTR *aDomain) 110 130 { 111 131 #ifndef VBOX_WITH_GUEST_CONTROL … … 125 145 } 126 146 127 STDMETHODIMP GuestSession::COMGETTER(Name)( BSTR *aName)147 STDMETHODIMP GuestSession::COMGETTER(Name)(IN_BSTR *aName) 128 148 { 129 149 #ifndef VBOX_WITH_GUEST_CONTROL … … 179 199 } 180 200 181 STDMETHODIMP GuestSession::COMGETTER(Environment)(ComSafeArrayOut( BSTR, aEnvironment))201 STDMETHODIMP GuestSession::COMGETTER(Environment)(ComSafeArrayOut(IN_BSTR, aEnvironment)) 182 202 { 183 203 #ifndef VBOX_WITH_GUEST_CONTROL … … 274 294 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 275 295 276 ReturnComNotImplemented();277 #endif /* VBOX_WITH_GUEST_CONTROL */ 278 } 279 280 STDMETHODIMP GuestSession::CopyFrom( BSTR aSource, BSTR aDest, ComSafeArrayIn(ULONG, aFlags), IProgress **aProgress)281 { 282 #ifndef VBOX_WITH_GUEST_CONTROL 283 ReturnComNotImplemented(); 284 #else 285 AutoCaller autoCaller(this); 286 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 287 288 ReturnComNotImplemented(); 289 #endif /* VBOX_WITH_GUEST_CONTROL */ 290 } 291 292 STDMETHODIMP GuestSession::CopyTo( BSTR aSource, BSTR aDest, ComSafeArrayIn(ULONG, aFlags), IProgress **aProgress)293 { 294 #ifndef VBOX_WITH_GUEST_CONTROL 295 ReturnComNotImplemented(); 296 #else 297 AutoCaller autoCaller(this); 298 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 299 300 ReturnComNotImplemented(); 301 #endif /* VBOX_WITH_GUEST_CONTROL */ 302 } 303 304 STDMETHODIMP GuestSession::DirectoryCreate( BSTR aPath, ULONG aMode, ULONG aFlags, IGuestDirectory **aProgress)305 { 306 #ifndef VBOX_WITH_GUEST_CONTROL 307 ReturnComNotImplemented(); 308 #else 309 AutoCaller autoCaller(this); 310 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 311 312 ReturnComNotImplemented(); 313 #endif /* VBOX_WITH_GUEST_CONTROL */ 314 } 315 316 STDMETHODIMP GuestSession::DirectoryCreateTemp( BSTR aTemplate, ULONG aMode, BSTR aName, IGuestDirectory **aDirectory)317 { 318 #ifndef VBOX_WITH_GUEST_CONTROL 319 ReturnComNotImplemented(); 320 #else 321 AutoCaller autoCaller(this); 322 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 323 324 ReturnComNotImplemented(); 325 #endif /* VBOX_WITH_GUEST_CONTROL */ 326 } 327 328 STDMETHODIMP GuestSession::DirectoryExists( BSTR aPath, BOOL *aExists)329 { 330 #ifndef VBOX_WITH_GUEST_CONTROL 331 ReturnComNotImplemented(); 332 #else 333 AutoCaller autoCaller(this); 334 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 335 336 ReturnComNotImplemented(); 337 #endif /* VBOX_WITH_GUEST_CONTROL */ 338 } 339 340 STDMETHODIMP GuestSession::DirectoryOpen( BSTR aPath, BSTR aFilter, BSTR aFlags, IGuestDirectory **aDirectory)341 { 342 #ifndef VBOX_WITH_GUEST_CONTROL 343 ReturnComNotImplemented(); 344 #else 345 AutoCaller autoCaller(this); 346 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 347 348 ReturnComNotImplemented(); 349 #endif /* VBOX_WITH_GUEST_CONTROL */ 350 } 351 352 STDMETHODIMP GuestSession::DirectoryQueryInfo( BSTR aPath, IGuestFsObjInfo **aInfo)353 { 354 #ifndef VBOX_WITH_GUEST_CONTROL 355 ReturnComNotImplemented(); 356 #else 357 AutoCaller autoCaller(this); 358 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 359 360 ReturnComNotImplemented(); 361 #endif /* VBOX_WITH_GUEST_CONTROL */ 362 } 363 364 STDMETHODIMP GuestSession::DirectoryRemove( BSTR aPath)365 { 366 #ifndef VBOX_WITH_GUEST_CONTROL 367 ReturnComNotImplemented(); 368 #else 369 AutoCaller autoCaller(this); 370 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 371 372 ReturnComNotImplemented(); 373 #endif /* VBOX_WITH_GUEST_CONTROL */ 374 } 375 376 STDMETHODIMP GuestSession::DirectoryRemoveRecursive( BSTR aPath, ComSafeArrayIn(DirectoryRemoveRecFlag, aFlags), IProgress **aProgress)377 { 378 #ifndef VBOX_WITH_GUEST_CONTROL 379 ReturnComNotImplemented(); 380 #else 381 AutoCaller autoCaller(this); 382 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 383 384 ReturnComNotImplemented(); 385 #endif /* VBOX_WITH_GUEST_CONTROL */ 386 } 387 388 STDMETHODIMP GuestSession::DirectoryRename( BSTR aSource, BSTR aDest, ComSafeArrayIn(PathRenameFlag, aFlags))389 { 390 #ifndef VBOX_WITH_GUEST_CONTROL 391 ReturnComNotImplemented(); 392 #else 393 AutoCaller autoCaller(this); 394 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 395 396 ReturnComNotImplemented(); 397 #endif /* VBOX_WITH_GUEST_CONTROL */ 398 } 399 400 STDMETHODIMP GuestSession::DirectorySetACL( BSTR aPath, BSTR aACL)296 uninit(); 297 #endif /* VBOX_WITH_GUEST_CONTROL */ 298 } 299 300 STDMETHODIMP GuestSession::CopyFrom(IN_BSTR aSource, BSTR aDest, ComSafeArrayIn(ULONG, aFlags), IProgress **aProgress) 301 { 302 #ifndef VBOX_WITH_GUEST_CONTROL 303 ReturnComNotImplemented(); 304 #else 305 AutoCaller autoCaller(this); 306 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 307 308 ReturnComNotImplemented(); 309 #endif /* VBOX_WITH_GUEST_CONTROL */ 310 } 311 312 STDMETHODIMP GuestSession::CopyTo(IN_BSTR aSource, BSTR aDest, ComSafeArrayIn(ULONG, aFlags), IProgress **aProgress) 313 { 314 #ifndef VBOX_WITH_GUEST_CONTROL 315 ReturnComNotImplemented(); 316 #else 317 AutoCaller autoCaller(this); 318 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 319 320 ReturnComNotImplemented(); 321 #endif /* VBOX_WITH_GUEST_CONTROL */ 322 } 323 324 STDMETHODIMP GuestSession::DirectoryCreate(IN_BSTR aPath, ULONG aMode, ULONG aFlags, IGuestDirectory **aProgress) 325 { 326 #ifndef VBOX_WITH_GUEST_CONTROL 327 ReturnComNotImplemented(); 328 #else 329 AutoCaller autoCaller(this); 330 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 331 332 ReturnComNotImplemented(); 333 #endif /* VBOX_WITH_GUEST_CONTROL */ 334 } 335 336 STDMETHODIMP GuestSession::DirectoryCreateTemp(IN_BSTR aTemplate, ULONG aMode, BSTR aName, IGuestDirectory **aDirectory) 337 { 338 #ifndef VBOX_WITH_GUEST_CONTROL 339 ReturnComNotImplemented(); 340 #else 341 AutoCaller autoCaller(this); 342 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 343 344 ReturnComNotImplemented(); 345 #endif /* VBOX_WITH_GUEST_CONTROL */ 346 } 347 348 STDMETHODIMP GuestSession::DirectoryExists(IN_BSTR aPath, BOOL *aExists) 349 { 350 #ifndef VBOX_WITH_GUEST_CONTROL 351 ReturnComNotImplemented(); 352 #else 353 AutoCaller autoCaller(this); 354 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 355 356 ReturnComNotImplemented(); 357 #endif /* VBOX_WITH_GUEST_CONTROL */ 358 } 359 360 STDMETHODIMP GuestSession::DirectoryOpen(IN_BSTR aPath, BSTR aFilter, BSTR aFlags, IGuestDirectory **aDirectory) 361 { 362 #ifndef VBOX_WITH_GUEST_CONTROL 363 ReturnComNotImplemented(); 364 #else 365 AutoCaller autoCaller(this); 366 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 367 368 ReturnComNotImplemented(); 369 #endif /* VBOX_WITH_GUEST_CONTROL */ 370 } 371 372 STDMETHODIMP GuestSession::DirectoryQueryInfo(IN_BSTR aPath, IGuestFsObjInfo **aInfo) 373 { 374 #ifndef VBOX_WITH_GUEST_CONTROL 375 ReturnComNotImplemented(); 376 #else 377 AutoCaller autoCaller(this); 378 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 379 380 ReturnComNotImplemented(); 381 #endif /* VBOX_WITH_GUEST_CONTROL */ 382 } 383 384 STDMETHODIMP GuestSession::DirectoryRemove(IN_BSTR aPath) 385 { 386 #ifndef VBOX_WITH_GUEST_CONTROL 387 ReturnComNotImplemented(); 388 #else 389 AutoCaller autoCaller(this); 390 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 391 392 ReturnComNotImplemented(); 393 #endif /* VBOX_WITH_GUEST_CONTROL */ 394 } 395 396 STDMETHODIMP GuestSession::DirectoryRemoveRecursive(IN_BSTR aPath, ComSafeArrayIn(DirectoryRemoveRecFlag, aFlags), IProgress **aProgress) 397 { 398 #ifndef VBOX_WITH_GUEST_CONTROL 399 ReturnComNotImplemented(); 400 #else 401 AutoCaller autoCaller(this); 402 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 403 404 ReturnComNotImplemented(); 405 #endif /* VBOX_WITH_GUEST_CONTROL */ 406 } 407 408 STDMETHODIMP GuestSession::DirectoryRename(IN_BSTR aSource, BSTR aDest, ComSafeArrayIn(PathRenameFlag, aFlags)) 409 { 410 #ifndef VBOX_WITH_GUEST_CONTROL 411 ReturnComNotImplemented(); 412 #else 413 AutoCaller autoCaller(this); 414 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 415 416 ReturnComNotImplemented(); 417 #endif /* VBOX_WITH_GUEST_CONTROL */ 418 } 419 420 STDMETHODIMP GuestSession::DirectorySetACL(IN_BSTR aPath, BSTR aACL) 401 421 { 402 422 #ifndef VBOX_WITH_GUEST_CONTROL … … 422 442 } 423 443 424 STDMETHODIMP GuestSession::EnvironmentSet( BSTR aName, BSTR aValue)425 { 426 #ifndef VBOX_WITH_GUEST_CONTROL 427 ReturnComNotImplemented(); 428 #else 429 AutoCaller autoCaller(this); 430 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 431 432 ReturnComNotImplemented(); 433 #endif /* VBOX_WITH_GUEST_CONTROL */ 434 } 435 436 STDMETHODIMP GuestSession::EnvironmentSetArray(ComSafeArrayIn( BSTR, aValues))437 { 438 #ifndef VBOX_WITH_GUEST_CONTROL 439 ReturnComNotImplemented(); 440 #else 441 AutoCaller autoCaller(this); 442 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 443 444 ReturnComNotImplemented(); 445 #endif /* VBOX_WITH_GUEST_CONTROL */ 446 } 447 448 STDMETHODIMP GuestSession::EnvironmentUnset( BSTR aName)449 { 450 #ifndef VBOX_WITH_GUEST_CONTROL 451 ReturnComNotImplemented(); 452 #else 453 AutoCaller autoCaller(this); 454 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 455 456 ReturnComNotImplemented(); 457 #endif /* VBOX_WITH_GUEST_CONTROL */ 458 } 459 460 STDMETHODIMP GuestSession::FileCreateTemp( BSTR aTemplate, ULONG aMode, BSTR aName, IGuestFile **aFile)461 { 462 #ifndef VBOX_WITH_GUEST_CONTROL 463 ReturnComNotImplemented(); 464 #else 465 AutoCaller autoCaller(this); 466 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 467 468 ReturnComNotImplemented(); 469 #endif /* VBOX_WITH_GUEST_CONTROL */ 470 } 471 472 STDMETHODIMP GuestSession::FileExists( BSTR aPath, BOOL *aExists)473 { 474 #ifndef VBOX_WITH_GUEST_CONTROL 475 ReturnComNotImplemented(); 476 #else 477 AutoCaller autoCaller(this); 478 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 479 480 ReturnComNotImplemented(); 481 #endif /* VBOX_WITH_GUEST_CONTROL */ 482 } 483 484 STDMETHODIMP GuestSession::FileOpen( BSTR aPath, BSTR aOpenMode, BSTR aDisposition, ULONG aCreationMode, LONG64 aOffset, IGuestFile **aFile)485 { 486 #ifndef VBOX_WITH_GUEST_CONTROL 487 ReturnComNotImplemented(); 488 #else 489 AutoCaller autoCaller(this); 490 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 491 492 ReturnComNotImplemented(); 493 #endif /* VBOX_WITH_GUEST_CONTROL */ 494 } 495 496 STDMETHODIMP GuestSession::FileQueryInfo( BSTR aPath, IGuestFsObjInfo **aInfo)497 { 498 #ifndef VBOX_WITH_GUEST_CONTROL 499 ReturnComNotImplemented(); 500 #else 501 AutoCaller autoCaller(this); 502 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 503 504 ReturnComNotImplemented(); 505 #endif /* VBOX_WITH_GUEST_CONTROL */ 506 } 507 508 STDMETHODIMP GuestSession::FileQuerySize( BSTR aPath, LONG64 *aSize)509 { 510 #ifndef VBOX_WITH_GUEST_CONTROL 511 ReturnComNotImplemented(); 512 #else 513 AutoCaller autoCaller(this); 514 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 515 516 ReturnComNotImplemented(); 517 #endif /* VBOX_WITH_GUEST_CONTROL */ 518 } 519 520 STDMETHODIMP GuestSession::FileRemove( BSTR aPath)521 { 522 #ifndef VBOX_WITH_GUEST_CONTROL 523 ReturnComNotImplemented(); 524 #else 525 AutoCaller autoCaller(this); 526 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 527 528 ReturnComNotImplemented(); 529 #endif /* VBOX_WITH_GUEST_CONTROL */ 530 } 531 532 STDMETHODIMP GuestSession::FileRename( BSTR aSource, BSTR aDest, ComSafeArrayIn(PathRenameFlag, aFlags))533 { 534 #ifndef VBOX_WITH_GUEST_CONTROL 535 ReturnComNotImplemented(); 536 #else 537 AutoCaller autoCaller(this); 538 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 539 540 ReturnComNotImplemented(); 541 #endif /* VBOX_WITH_GUEST_CONTROL */ 542 } 543 544 STDMETHODIMP GuestSession::FileSetACL( BSTR aPath, BSTR aACL)545 { 546 #ifndef VBOX_WITH_GUEST_CONTROL 547 ReturnComNotImplemented(); 548 #else 549 AutoCaller autoCaller(this); 550 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 551 552 ReturnComNotImplemented(); 553 #endif /* VBOX_WITH_GUEST_CONTROL */ 554 } 555 556 STDMETHODIMP GuestSession::ProcessCreate( BSTR aCommand, ComSafeArrayIn(BSTR, aArguments), ComSafeArrayIn(BSTR, aEnvironment),444 STDMETHODIMP GuestSession::EnvironmentSet(IN_BSTR aName, BSTR aValue) 445 { 446 #ifndef VBOX_WITH_GUEST_CONTROL 447 ReturnComNotImplemented(); 448 #else 449 AutoCaller autoCaller(this); 450 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 451 452 ReturnComNotImplemented(); 453 #endif /* VBOX_WITH_GUEST_CONTROL */ 454 } 455 456 STDMETHODIMP GuestSession::EnvironmentSetArray(ComSafeArrayIn(IN_BSTR, aValues)) 457 { 458 #ifndef VBOX_WITH_GUEST_CONTROL 459 ReturnComNotImplemented(); 460 #else 461 AutoCaller autoCaller(this); 462 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 463 464 ReturnComNotImplemented(); 465 #endif /* VBOX_WITH_GUEST_CONTROL */ 466 } 467 468 STDMETHODIMP GuestSession::EnvironmentUnset(IN_BSTR aName) 469 { 470 #ifndef VBOX_WITH_GUEST_CONTROL 471 ReturnComNotImplemented(); 472 #else 473 AutoCaller autoCaller(this); 474 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 475 476 ReturnComNotImplemented(); 477 #endif /* VBOX_WITH_GUEST_CONTROL */ 478 } 479 480 STDMETHODIMP GuestSession::FileCreateTemp(IN_BSTR aTemplate, ULONG aMode, BSTR aName, IGuestFile **aFile) 481 { 482 #ifndef VBOX_WITH_GUEST_CONTROL 483 ReturnComNotImplemented(); 484 #else 485 AutoCaller autoCaller(this); 486 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 487 488 ReturnComNotImplemented(); 489 #endif /* VBOX_WITH_GUEST_CONTROL */ 490 } 491 492 STDMETHODIMP GuestSession::FileExists(IN_BSTR aPath, BOOL *aExists) 493 { 494 #ifndef VBOX_WITH_GUEST_CONTROL 495 ReturnComNotImplemented(); 496 #else 497 AutoCaller autoCaller(this); 498 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 499 500 ReturnComNotImplemented(); 501 #endif /* VBOX_WITH_GUEST_CONTROL */ 502 } 503 504 STDMETHODIMP GuestSession::FileOpen(IN_BSTR aPath, BSTR aOpenMode, BSTR aDisposition, ULONG aCreationMode, LONG64 aOffset, IGuestFile **aFile) 505 { 506 #ifndef VBOX_WITH_GUEST_CONTROL 507 ReturnComNotImplemented(); 508 #else 509 AutoCaller autoCaller(this); 510 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 511 512 ReturnComNotImplemented(); 513 #endif /* VBOX_WITH_GUEST_CONTROL */ 514 } 515 516 STDMETHODIMP GuestSession::FileQueryInfo(IN_BSTR aPath, IGuestFsObjInfo **aInfo) 517 { 518 #ifndef VBOX_WITH_GUEST_CONTROL 519 ReturnComNotImplemented(); 520 #else 521 AutoCaller autoCaller(this); 522 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 523 524 ReturnComNotImplemented(); 525 #endif /* VBOX_WITH_GUEST_CONTROL */ 526 } 527 528 STDMETHODIMP GuestSession::FileQuerySize(IN_BSTR aPath, LONG64 *aSize) 529 { 530 #ifndef VBOX_WITH_GUEST_CONTROL 531 ReturnComNotImplemented(); 532 #else 533 AutoCaller autoCaller(this); 534 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 535 536 ReturnComNotImplemented(); 537 #endif /* VBOX_WITH_GUEST_CONTROL */ 538 } 539 540 STDMETHODIMP GuestSession::FileRemove(IN_BSTR aPath) 541 { 542 #ifndef VBOX_WITH_GUEST_CONTROL 543 ReturnComNotImplemented(); 544 #else 545 AutoCaller autoCaller(this); 546 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 547 548 ReturnComNotImplemented(); 549 #endif /* VBOX_WITH_GUEST_CONTROL */ 550 } 551 552 STDMETHODIMP GuestSession::FileRename(IN_BSTR aSource, BSTR aDest, ComSafeArrayIn(PathRenameFlag, aFlags)) 553 { 554 #ifndef VBOX_WITH_GUEST_CONTROL 555 ReturnComNotImplemented(); 556 #else 557 AutoCaller autoCaller(this); 558 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 559 560 ReturnComNotImplemented(); 561 #endif /* VBOX_WITH_GUEST_CONTROL */ 562 } 563 564 STDMETHODIMP GuestSession::FileSetACL(IN_BSTR aPath, BSTR aACL) 565 { 566 #ifndef VBOX_WITH_GUEST_CONTROL 567 ReturnComNotImplemented(); 568 #else 569 AutoCaller autoCaller(this); 570 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 571 572 ReturnComNotImplemented(); 573 #endif /* VBOX_WITH_GUEST_CONTROL */ 574 } 575 576 STDMETHODIMP GuestSession::ProcessCreate(IN_BSTR aCommand, ComSafeArrayIn(IN_BSTR, aArguments), ComSafeArrayIn(IN_BSTR, aEnvironment), 557 577 ComSafeArrayIn(ProcessCreateFlag, aFlags), ULONG aTimeoutMS, IGuestProcess **IGuestProcess) 558 578 { … … 567 587 } 568 588 569 STDMETHODIMP GuestSession::ProcessCreateEx( BSTR aCommand, ComSafeArrayIn(BSTR, aArguments), ComSafeArrayIn(BSTR, aEnvironment),589 STDMETHODIMP GuestSession::ProcessCreateEx(IN_BSTR aCommand, ComSafeArrayIn(IN_BSTR, aArguments), ComSafeArrayIn(IN_BSTR, aEnvironment), 570 590 ComSafeArrayIn(ProcessCreateFlag, aFlags), ULONG aTimeoutMS, 571 591 ProcessPriority aPriority, ComSafeArrayIn(ULONG, aAffinity), … … 606 626 } 607 627 608 STDMETHODIMP GuestSession::SymlinkCreate( BSTR aSource, BSTR aTarget, SymlinkType aType)609 { 610 #ifndef VBOX_WITH_GUEST_CONTROL 611 ReturnComNotImplemented(); 612 #else 613 AutoCaller autoCaller(this); 614 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 615 616 ReturnComNotImplemented(); 617 #endif /* VBOX_WITH_GUEST_CONTROL */ 618 } 619 620 STDMETHODIMP GuestSession::SymlinkExists( BSTR aSymlink, BOOL *aExists)621 { 622 #ifndef VBOX_WITH_GUEST_CONTROL 623 ReturnComNotImplemented(); 624 #else 625 AutoCaller autoCaller(this); 626 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 627 628 ReturnComNotImplemented(); 629 #endif /* VBOX_WITH_GUEST_CONTROL */ 630 } 631 632 STDMETHODIMP GuestSession::SymlinkRead( BSTR aSymlink, ComSafeArrayIn(SymlinkReadFlag, aFlags), BSTR *aTarget)633 { 634 #ifndef VBOX_WITH_GUEST_CONTROL 635 ReturnComNotImplemented(); 636 #else 637 AutoCaller autoCaller(this); 638 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 639 640 ReturnComNotImplemented(); 641 #endif /* VBOX_WITH_GUEST_CONTROL */ 642 } 643 644 STDMETHODIMP GuestSession::SymlinkRemoveDirectory( BSTR aPath)645 { 646 #ifndef VBOX_WITH_GUEST_CONTROL 647 ReturnComNotImplemented(); 648 #else 649 AutoCaller autoCaller(this); 650 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 651 652 ReturnComNotImplemented(); 653 #endif /* VBOX_WITH_GUEST_CONTROL */ 654 } 655 656 STDMETHODIMP GuestSession::SymlinkRemoveFile( BSTR aFile)657 { 658 #ifndef VBOX_WITH_GUEST_CONTROL 659 ReturnComNotImplemented(); 660 #else 661 AutoCaller autoCaller(this); 662 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 663 664 ReturnComNotImplemented(); 665 #endif /* VBOX_WITH_GUEST_CONTROL */ 666 } 667 628 STDMETHODIMP GuestSession::SymlinkCreate(IN_BSTR aSource, BSTR aTarget, SymlinkType aType) 629 { 630 #ifndef VBOX_WITH_GUEST_CONTROL 631 ReturnComNotImplemented(); 632 #else 633 AutoCaller autoCaller(this); 634 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 635 636 ReturnComNotImplemented(); 637 #endif /* VBOX_WITH_GUEST_CONTROL */ 638 } 639 640 STDMETHODIMP GuestSession::SymlinkExists(IN_BSTR aSymlink, BOOL *aExists) 641 { 642 #ifndef VBOX_WITH_GUEST_CONTROL 643 ReturnComNotImplemented(); 644 #else 645 AutoCaller autoCaller(this); 646 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 647 648 ReturnComNotImplemented(); 649 #endif /* VBOX_WITH_GUEST_CONTROL */ 650 } 651 652 STDMETHODIMP GuestSession::SymlinkRead(IN_BSTR aSymlink, ComSafeArrayIn(SymlinkReadFlag, aFlags), BSTR *aTarget) 653 { 654 #ifndef VBOX_WITH_GUEST_CONTROL 655 ReturnComNotImplemented(); 656 #else 657 AutoCaller autoCaller(this); 658 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 659 660 ReturnComNotImplemented(); 661 #endif /* VBOX_WITH_GUEST_CONTROL */ 662 } 663 664 STDMETHODIMP GuestSession::SymlinkRemoveDirectory(IN_BSTR aPath) 665 { 666 #ifndef VBOX_WITH_GUEST_CONTROL 667 ReturnComNotImplemented(); 668 #else 669 AutoCaller autoCaller(this); 670 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 671 672 ReturnComNotImplemented(); 673 #endif /* VBOX_WITH_GUEST_CONTROL */ 674 } 675 676 STDMETHODIMP GuestSession::SymlinkRemoveFile(IN_BSTR aFile) 677 { 678 #ifndef VBOX_WITH_GUEST_CONTROL 679 ReturnComNotImplemented(); 680 #else 681 AutoCaller autoCaller(this); 682 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 683 684 ReturnComNotImplemented(); 685 #endif /* VBOX_WITH_GUEST_CONTROL */ 686 } 687
Note:
See TracChangeset
for help on using the changeset viewer.