IDebugPortPicker::DisplayPortPicker
顯示指定的對話方塊,可讓使用者選取一個連接埠。
HRESULT DisplayPortPicker(
HWND hwndParentDialog,
BSTR* pbstrPortId
);
public int DisplayPortPicker(
int hwndParentDialog,
out string pbstrPortId
);
參數
hwndParentDialog
[in]父對話方塊的控制代碼。pbstrPortId
[] out連接埠識別項的字串。
傳回值
如果成功的話,會傳回S_OK。 否則,會傳回錯誤碼。 傳回值為S_FALSE (或傳回值為S_OK與BSTR設定為 [ NULL) 表示使用者已按一下取消。