Programmatically Add Windows Modem

Hi,

I am working on adding several modem entries programmatically(Win32 C++) on a WES7 image. I am relatively new to Windows System Programming, so I have mostly been relying on ChatGPT to provide examples. I have been debugging on the machine to become familiar with the structures required, but so far I have only seen examples using SetupAPI.h.

The progress that I have made so far is limited to a new entry in the HKLM\SYSTEM\ControlSet001\Control\Class{4D36E96D-E325-11CE-BFC1-08002BE10318} key, but I am not seeing the values related to the FriendlyName I am attempting to create with. Additionally, there are no subkeys like AllUserSettings, Answer, Hangup, etc that I have seen created when following the "Phone and Modem" add dialog.

Is this the correct path to programmatically add modems in a way that mimics the "Phone and Modem" add process?

If you wanted to add a "Standard 19200 bps Modem" on COM26, how would you go about it?

Thanks for your help.

How did you get the new key created? Did you hack the registry, or did you actually create an INF file and install it? And if so, how, exactly, did you do that?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.