Tdi question

Hi:

This is the same question that I posted on ntfs server…

Hi All,

I’m trying to find a way to capture (Pnp and other) notification for the
following -

  1. Transport being unavailable ( mainly tcpip )

  2. NIC card being takeout or damaged.

  3. Device being disabled or unloaded ( possibly using cntl applet).

  4. Hybernation

  5. Cable being disconnected.

I’ve seen quite a bit of code from example smbrx, rdr2 (w2k, xp) that
addresses the Pnp registration etc.

Examples of TdiClient (both Tcp, and Udp) that are available either from
OSr or other has the minimal code to interface with ( basically) addr,
connection, and control channels of the transport… I would like to use
the same driver structure, but then I need the above notifications too.

It seems like I will have to use the SMB example for binding to transport
etc, and then register with the transport for those notification ??? Also
it seems like I may have to use a device object (tdi client )for binding
to transport etc…

So basically looking for a minimal code that can track those at the
tdi client level…

Thanx in adv. for any help and direction.

-prokash