Changeset 23129 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Sep 18, 2009 12:57:37 PM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r22911 r23129 898 898 } 899 899 } 900 else if (!strcmp(a->argv[1], "vrdpport")) 901 { 902 if (a->argc <= 1 + 1) 903 { 904 errorArgument("Missing argument to '%s'", a->argv[1]); 905 rc = E_FAIL; 906 break; 907 } 908 /* get the corresponding VRDP server */ 909 ComPtr<IVRDPServer> vrdpServer; 910 sessionMachine->COMGETTER(VRDPServer)(vrdpServer.asOutParam()); 911 ASSERT(vrdpServer); 912 if (vrdpServer) 913 { 914 uint16_t vrdpport; 915 916 if (!strcmp(a->argv[2], "default")) 917 { 918 vrdpport = 0; 919 } 920 else 921 { 922 int vrc = RTStrToUInt16Full(a->argv[2], 0, &vrdpport); 923 924 if (vrc != VINF_SUCCESS) 925 { 926 vrdpport = UINT16_MAX; 927 } 928 } 929 930 if (vrdpport != UINT16_MAX) 931 { 932 CHECK_ERROR_BREAK(vrdpServer, COMSETTER(Port)(vrdpport)); 933 } 934 else 935 { 936 errorArgument("Invalid vrdp server port '%s'", Utf8Str(a->argv[2]).raw()); 937 rc = E_FAIL; 938 break; 939 } 940 } 941 } 900 942 #endif /* VBOX_WITH_VRDP */ 901 943 else if ( !strcmp (a->argv[1], "usbattach") -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r22866 r23129 308 308 { 309 309 RTPrintf(" vrdp on|off] |\n"); 310 RTPrintf(" vrdpport default|<port>] |\n"); 310 311 } 311 312 RTPrintf(" setvideomodehint <xres> <yres> <bpp> [display]|\n"
Note:
See TracChangeset
for help on using the changeset viewer.