<html><head><base href="x-msg://327/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">VBoxManage source code is usually a good place to look for how to use an API. Here's what the current source code says:<div><br></div><div>1884<span class="Apple-tab-span" style="white-space:pre">    </span>            case MODIFYVM_VRDPPORT:<br>1885<span class="Apple-tab-span" style="white-space:pre">      </span>            {<br>1886<span class="Apple-tab-span" style="white-space:pre">      </span>                vrdeWarningDeprecatedProperty("vrdpport", "TCP/Ports", ValueUnion.psz);<br>1887<span class="Apple-tab-span" style="white-space:pre">    </span><br>1888<span class="Apple-tab-span" style="white-space:pre">      </span>                ComPtr<IVRDEServer> vrdeServer;<br>1889<span class="Apple-tab-span" style="white-space:pre">    </span>                machine->COMGETTER(VRDEServer)(vrdeServer.asOutParam());<br>1890<span class="Apple-tab-span" style="white-space:pre">      </span>                ASSERT(vrdeServer);<br>1891<span class="Apple-tab-span" style="white-space:pre">      </span><br>1892<span class="Apple-tab-span" style="white-space:pre">      </span>                if (!strcmp(ValueUnion.psz, "default"))<br>1893<span class="Apple-tab-span" style="white-space:pre"> </span>                    CHECK_ERROR(vrdeServer, SetVRDEProperty(Bstr("TCP/Ports").raw(), Bstr("0").raw()));<br>1894<span class="Apple-tab-span" style="white-space:pre">       </span>                else<br>1895<span class="Apple-tab-span" style="white-space:pre">        </span>                    CHECK_ERROR(vrdeServer, SetVRDEProperty(Bstr("TCP/Ports").raw(), Bstr(ValueUnion.psz).raw()));<br>1896<span class="Apple-tab-span" style="white-space:pre">      </span>                break;<br>1897<span class="Apple-tab-span" style="white-space:pre">      </span>            }</div><div><br><div><div>On Dec 12, 2010, at 19:27 , Joseph Smith wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Hi,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">IVRDEServer appears to be missing an important element: 'Ports'.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">In 3.2.x, the ports field stored the port(s) that were to be used for RDP connections.  A single value or a range could be provided.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">The 4.0 BETA2 UI does seem read-in the values that existed prior to the upgrade to 4.0 and can also update/add new values too.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">The documentation and API however does not have this field.  How will a port (or range of ports) be specified for RDP connections for a VM?</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">The v4.0 IVRDEServer API adds two new methods to the IVRDEServer class (set/get VRDEProperty) that were not present in 3.2.x.  It seems these methods allow get/set of key and value pairs.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Are these two new methods the way in which port information will be get/set?  Is there a list of valid properties that can/should be used?</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I looked through the SDK documentation but did not find anything on this.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Thanks,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Joe</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; position: fixed; "></div></div><br>_______________________________________________<br>vbox-dev mailing list<br><a href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a><br><a href="http://vbox.innotek.de/mailman/listinfo/vbox-dev">http://vbox.innotek.de/mailman/listinfo/vbox-dev</a><br></div></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div><br class="Apple-interchange-newline">---</div><div>Achim Hasenmüller | Director Engineering VirtualBox<br>Phone: +49 (0) 7151 60405-150<br>Oracle Virtualization<br><br>ORACLE Deutschland B.V. & Co. KG | Werkstrasse 24 | 71384 Weinstadt<br><br>ORACLE Deutschland B.V. & Co. KG<br>Hauptverwaltung: Riesstr. 25, D-80992 München<br>Registergericht: Amtsgericht München, HRA 95603<br><br>Komplementärin: ORACLE Deutschland Verwaltung B.V.<br>Rijnzathe 6, 3454PV De Meern, Niederlande<br>Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697<br>Geschäftsführer: Jürgen Kunz, Marcel van de Molen, Alexander van der Ven</div></span></span>
</div>
<br></div></body></html>