I have written in C# a simple application to list all COM ports in PC. It saves me a lot of time since I work with multiple USB to serial converters. I would like to have a fast access to changing COM port number for selected adapter.
I display them in ListBox. I would like to open Property page or Advanced settings window when right clicking on an item (like Device Manager does in popup menu Properties).
For listing devices I use:
ManagementObjectSearcher searcher = new ManagementObjectSearcher("SELECT * FROM Win32_PnPEntity WHERE Name LIKE \"%(COM%\"");
I found that in WINAPI there exists fuction SerialDisplayAdvancedSettings but I have no idea how to access it in C# and how to provide its parameters.
Is there a way how to display system Property dialog for selected COM port device?