First I have to appologized for my poor English.
I am doing an NAT project which uses NDIS IM Driver based on
Passthru for 2k and IMSAMP for NT4.0. My driver runs very well
when working with two ethernet cards.
But when I tried to run my driver with one Modem and one ethernet
card,
I encoutered some problems.
I read Passthru example of XP DDK, and add NdisMediumWan to
NdisMediuArray.
In MpInitialize, I add the following lines as Passthru for XP:
Medium=pAdapt->Medium;
if (Medium == NdisMediumWan)
{
Medium = NdisMedium802_3;
}
And the inf was also modified as “ethernet, tokenring, fddi, wan”.
Ok, My driver can bind with wan adapter and ethernet adapter. All are
well.
But when I dial up to connect to my ISP, a Page Fault occured when
“registering computer on the network”.
Then I added some DbgPrint to my driver, I found the Page Fault
occured after
MpQueryInformation return. The codes of MpQueryInformation are quite
similar to that of IMSAMP.
What is wrong? Please help me, any suggestions are appreciated.
Thanks
brucie
brucie@263.net
(???r??z{e?˛???m?m?{]z???&j)@u?Ӣ?칻?&ޱ??i?Z?G?j)m?W???u?칻-E?"?Ǧm??(Z?X???,??&