SerialDisplayAdvancedSettings function (msports.h)
SerialDisplayAdvancedSettings displays the system-supplied advanced settings dialog box for a specified COM port device.
Syntax
LONG SerialDisplayAdvancedSettings(
[in] HWND ParentHwnd,
[in] HDEVINFO DeviceInfoSet,
[in] PSP_DEVINFO_DATA DeviceInfoData
);
Parameters
[in] ParentHwnd
Handle to the parent window for the advanced settings dialog box.
[in] DeviceInfoSet
Specifies the device information set that includes the device instance specified by DeviceInfoData.
[in] DeviceInfoData
Pointer to the device instance in the specified device information set. The routine displays the advanced settings dialog box for this device.
Return value
SerialDisplayAdvancedSettings returns one of the following status values.
Return code | Description |
---|---|
|
The advanced settings dialog box was successfully displayed. |
|
One of the following occurred: The specified device information set is not valid. |
|
The routine could not open the specified device's hardware registry key. |
|
The name of the port is not valid. |
|
The routine could not display the dialog box. |
Remarks
SerialDisplayAdvancedSettings displays the system-supplied advanced settings dialog box for a specified device. If you supply a custom dialog box, this routine displays it; otherwise, the routine displays the default dialog box.
SerialDisplayAdvancedSettings runs in user mode.
For more information, see Installing an Advanced Properties Page for a COM Port.
Requirements
Requirement | Value |
---|---|
Target Platform | Desktop |
Header | msports.h (include Msports.h) |
Library | Msports.lib |
DLL | Msports.dll |