> ----------
From: jenson[SMTP:xxxxx@beep.ru]
Reply To: NT Developers Interest List
Sent: Wednesday, September 26, 2001 9:31 AM
To: NT Developers Interest List
Subject: [ntdev] RE: NDIS PIM driver
Yes, it is …
Why do you think it’s impossible ? I need nothing more than packets …
Other handlers
are implemented by system (winsock I guess …) So why not ?
Winsock?! Maybe you should read NDIS docs and try to understand how things
work (sorry, no offence). What you (probably) want to write is something
similar to NDIS IM driver and you should use similar approach. All depends
on what do you want to do. For example, if you want change packet size, you
have to inform above driver (tcpip?) about different maximal size and it is
necessary to hook request handler. Also, you should be informed about
opening and closing adapter, you can’t indicate packet receive after adapter
is closed (and related structures freed) and so on.
Actually the problem is in ProtocolReceive only I guess, because when I
switch off ProtocolReceive Interceiption everything works fine.
To be more precise, My driver does the following :
- get a packet (indicated)
- Saves it somewhere
- shows it up a bit later.
What does mean “a bit later”? Do you indicate it in original ProtocolReceive
context? Do you indicate full packets?
Should I implement ProtocolReceiveComplete in this case ? Or
system-implemented handlers are ok ?
It may be your problem. Protocols shouldn’t process packet in
ProtocolReceive handler, only store it and process it later in
ReceiveComplete handler. So if you don’t hook this one, you change expected
call order and cause problems. You should at least indicate receive complete
manually after you indicate packet.
Maybe I should implement some other handlers, shouldn’t I ?
See above.
I know about the sample… but … would you lend me 500$ ? :))))
It depends how much costs your time. It would probably save you several
weeks or months of trial-error work. We bought an initial version of this
example (somewhat cheaper), I examined it and wrote my driver from scratch
looking to example code. As a result I had a working driver quickly and
could avoid subtle problems with hideous w9x “system”.
Best regards,
Michal Vodicka
Veridicom
(RKK - Skytale)
[WWW: http://www.veridicom.com , http://www.skytale.com]
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com