Re: Question about FILE_OBJECT

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On 7/17/06 7:24 PM, in article
1153182298.161678.91190@xxxxxxxxxxxxxxxxxxxxxxxxxxxx, "anton bassov"
<soviet_bloke@xxxxxxxxxxx> wrote:
One of these requirements is that it has
to register itself as miniport driver with NDIS library. Any driver
that does so cannot expose regular Dispatch interface, for the simple
reason that miniport driver's functions are not supposed to be called
by anyone,apart from NDIS library. Opening file handle requires
IRP_MJ_CREATE's handler. Therefore, you cannot open a handle on NDIS
IM.

I missed the original post, but would NdisMRegisterDevice() work for the OP?

Apart from this, NDIS IM may pose quite a few other problems. For
example, NDIS IM often
fails with virtual adapters.

I haven't had this experience. IM driver installation is sensitive, but I
haven't noticed anything in particular with (well written) virtual
miniports. Could you share your experience?

In order to avoid all these troubles, you
can hook NDIS calls, instead of writing NDIS IM.

No, please don't do that. It'll just create a support nightmare. The 9x
PCAUSA hook driver is another thing altogether; on NT+, IM drivers should
obviate the need for hooks.

-sd

.



Relevant Pages

  • Re: NDIS_MINIPORT_CHARACTERISTICS
    ... > this is by being there at the time it registers with NDIS. ... To show that it is possible that a backdoor comms ... >>of calls that NDIS makes to a miniport. ... > driver on the filesystem due to IDS/AV worries. ...
    (microsoft.public.development.device.drivers)
  • Re:NDIS Irda protocol driver
    ... in between miniport driver's indication of packets to NDIS library and NDIS ... library's notification of your driver about incoming packets. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Tcpip.sys bug: FTP Upload. MiniportHalt isnt called untill it has
    ... cancel packets on the miniport driver. ... driver, this bug would have been discovered long, long ago. ... handler and that does return all unsent packets to Ndis. ... hanging the PnP manager with device ...
    (microsoft.public.development.device.drivers)
  • Re: NDIS_MINIPORT_CHARACTERISTICS
    ... I am not sure what you mean by "patching NDIS routine". ... I strongly advise against making any assumption about what miniport block ... Then please write an IM driver. ...
    (microsoft.public.development.device.drivers)
  • Re: Incorrect server name
    ... There is no primary WINS server defined for this adapter. ... Broadcom BCM5708C NetXtreme II GigE (NDIS VBD Client) ... Network Monitor Driver ...
    (microsoft.public.windows.server.general)