Changeset 15267 in vbox
- Timestamp:
- Dec 10, 2008 5:24:13 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r15205 r15267 452 452 " usbdetach <uuid>|<address> |\n" 453 453 " dvdattach none|<uuid>|<filename>|host:<drive> |\n" 454 " floppyattach none|<uuid>|<filename>|host:<drive> |\n" 455 " setvideomodehint <xres> <yres> <bpp> [display]|\n" 454 " floppyattach none|<uuid>|<filename>|host:<drive> |\n"); 455 if (fVRDP) 456 { 457 RTPrintf(" vrdp on|off] |\n"); 458 } 459 RTPrintf(" setvideomodehint <xres> <yres> <bpp> [display]|\n" 456 460 " setcredentials <username> <password> <domain>\n" 457 461 " [-allowlocallogon <yes|no>]\n" … … 3513 3517 } 3514 3518 } 3519 #ifdef VBOX_WITH_VRDP 3520 else if (strcmp(argv[1], "vrdp") == 0) 3521 { 3522 if (argc <= 1 + 1) 3523 { 3524 errorArgument("Missing argument to '%s'", argv[1]); 3525 rc = E_FAIL; 3526 break; 3527 } 3528 /* get the corresponding VRDP server */ 3529 ComPtr<IVRDPServer> vrdpServer; 3530 sessionMachine->COMGETTER(VRDPServer)(vrdpServer.asOutParam()); 3531 ASSERT(vrdpServer); 3532 if (vrdpServer) 3533 { 3534 if (strcmp(argv[2], "on") == 0) 3535 { 3536 CHECK_ERROR_BREAK (vrdpServer, COMSETTER(Enabled)(TRUE)); 3537 } 3538 else if (strcmp(argv[2], "off") == 0) 3539 { 3540 CHECK_ERROR_BREAK (vrdpServer, COMSETTER(Enabled)(FALSE)); 3541 } 3542 else 3543 { 3544 errorArgument("Invalid vrdp server state '%s'", Utf8Str(argv[2]).raw()); 3545 rc = E_FAIL; 3546 break; 3547 } 3548 } 3549 } 3550 #endif /* VBOX_WITH_VRDP */ 3515 3551 else if (strcmp (argv[1], "usbattach") == 0 || 3516 3552 strcmp (argv[1], "usbdetach") == 0)
Note:
See TracChangeset
for help on using the changeset viewer.