I hope some one can help.
I am trying to write a NDIS driver in windows CE.
The driver interface is an SDIO bus.
My first step was to write an SDIO stream driver to test that card.
It's worked like magic.
Second step was to try loading an NDIS driver for this card.
According to Microsoft documentation I have to do the fallowing:
1. Write a dll that export "DriverEntry".
2. Add a key in the registry
[HKEY_LOCAL_MACHINE \Comm \MYDRV]
DisplayName="MYDRV NDIS Driver"
Group ="NDIS"
ImagePath="MYDRV.DLL"
[Linkage]
Route="MYDRV1"

[HKEY_LOCAL_MACHINE \Comm \MYDRV1]
DisplayName="MYDRV NDIS Driver"
Group ="NDIS"
ImagePath="MYDRV.DLL"
[Parms]
BusNumber=0
BusType=0

[HKEY_LOCAL_MACHINE\Drivers\SDCARD\ClientDrivers\Custom\MANF-02DF-CARDID-9103-FUNC-1]
DLL="NDIS.DLL"
Prefix= "NDS"
Miniport=" MYDRV "

As a resulted my DllMain was call twice one for load and one for
unload.

Can some one tell me what I am doing wrong?