Hi,
I am using the current WinDDK, 7600.16385.0. The Fakemodem sample compiles fine under the Win7 x64 Checked Build Environment (I am using an x64 machine). However when trying to install the driver some errors surface.
Trying to install the driver using DevCon fails:
C:.…> devcon.exe install mdmfake.inf {b85b7c50-6a01-11d2-b841-00c04fad5171}\fakemodem
Device node created. Install is complete when drivers are installed…
Updating drivers for {b85b7c50-6a01-11d2-b841-00c04fad5171}\fakemodem from C:\src\fakemodem\objchk_win7_amd64\amd64\mdmfake.inf.
devcon.exe failed.
When I try to install the driver using the ‘Action->Add legacy hardware’ in the Device Manager, I get through all the steps, including choosing either COM1 or COM2 (both pre-existing devices) for the modem. Windows claims that ‘Your modem has been set up successfully’, however the DebugView log states otherwise:
Fakemode Function Driver Sample - Driver Framework Edition.
Built Feb 8 2010 18:36:59
FmEvtDeviceAdd routine
FmCreateDosDevicesSymbolicLink failed with Status code 0xc0000034
Some investigation reveals that the problem is the non-existent registry string value ‘PortName’ under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\MODEM\0001\Device Parameters. When I manually create that value and assign it e.g. the value “1”, then disable and re-enable the modem, the error disappears from the DebugView log.
However, trying to query the modem by clicking on ‘Query Modem’ in the Diagnostics tab of the properties page of the Modem device fails with ‘The modem failed to respond…’ message. Trying to communicate with the fake modem via the serial port using the ‘putty’ terminal emulator fails as well (maybe because putty is trying to communicate with the actual serial port to which no modem is attached).
I suspect that the problem lies with the install process, since I understand that the ‘PortName’ value should have been automatically created.
I would appreciate it if someone could tell me what I have done wrong.
Thanks,
Yariv