Fakemodem driver question - set and get registry info

Hi all,

In WinXP DDK there is an example of the Fakemodem driver. In init.c file it sets and gets the registry info.
(2 functions: ModemGetRegistryKeyValue and ModemSetRegistryKeyValue).

The question is that these functions are not called in this driver. I need almost the same solution for my driver.

Can someone to make more clear how to call these functions inside driver? (In AddDevice as ecample).

regards,

Andrew

Andrey Kamchatnikov wrote:

In WinXP DDK there is an example of the Fakemodem driver. In
init.c file it sets and gets the registry info. (2 functions:
ModemGetRegistryKeyValue and ModemSetRegistryKeyValue).

The question is that these functions are not called in this driver. I
need almost the same solution for my driver.

I would check the KMDF fakemodem sample from the 6000 WDK. The driver itself is KMDF but you can still see how to tweak everything you need to get your DOS symbolic link going and also touch the SERIALCOMM mapping in the registry.