Edit

Share via


IDebugPortPicker::DisplayPortPicker

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

Syntax

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