Re[2]: TDI client and few network cards

Hello Maxim,

Friday, March 12, 2004, 1:40:32 PM, you wrote:

> initializing TDI client cannot specify(rather) required IP address.

MSS> This is done when you create the address file object.

> The only suspicious thing I saw is
> PTA_IP_ADDRESS pAddress->Address[0].Address[0].in_addr = 0;

MSS> Yes, set it to non-NULL. This ZwCreateFile call is mapped to Berkeley bind().

Ok, I did it.

But, I saw very strange side-effect.
When I’m trying to obtain properties from such object
pObject is created using non-null in_addr

ret = TdiQueryInformationEx(
pObject, // control object
GENERIC_ENTITY, // entity
TL_INSTANCE, // instance
INFO_CLASS_GENERIC, // class
INFO_TYPE_PROVIDER, // type
ENTITY_LIST_ID, // id
pEntityBuffer, // output buffer
&dBufferSize ); // output buffer size

I got ret == STATUS_SUCCESS, but dBufferSize == 0. I’m not sure that
is right.
In fact, I don’t need this call because I used it to obtain a list of
available addresses(just for dumping), but such behaviour is looking as very-very
suspicious.


Best regards,
Sergey mailto:kipnis@wp.pl