Compartir a través de


IDebugPortPicker::DisplayPortPicker

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Displays the specified dialog box that allows the user to select a port.

Syntax

HRESULT DisplayPortPicker(
   HWND hwndParentDialog,
   BSTR* pbstrPortId
);
public int DisplayPortPicker(
   int hwndParentDialog,
   out string pbstrPortId
);

Parameters

hwndParentDialog
[in] Handle for the parent dialog box.

pbstrPortId
[out] Port identifier string.

Return Value

If successful, returns S_OK; otherwise, returns an error code. A return value of S_FALSE (or a return value of S_OK with the BSTR set to NULL) indicates that the user clicked Cancel.

See also