TdiRegisterPnPHandlers

I’m using ‘TdiRegisterPnPHandlers’ to get notification on ‘BindingHandler’
using ‘Tcpip’ to make tcp connection during OS boot. I find that the handler
is called twice for TDI_PNP_OP_NETREADY and if I make tcp connection after
the second call then then the tcp connection succeeds. Could anybody tell me
why the handler is called twice? My system has single NIC, XP 64, ip address
by DHCP. Let me know if you need more info.

Thanks,
Hakim

> -----Original Message-----

From: xxxxx@lists.osr.com [mailto:bounce-300340-
xxxxx@lists.osr.com] On Behalf Of hakim
Sent: Thursday, September 13, 2007 3:52 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] TdiRegisterPnPHandlers

I’m using ‘TdiRegisterPnPHandlers’ to get notification on
‘BindingHandler’
using ‘Tcpip’ to make tcp connection during OS boot. I find that the
handler
is called twice for TDI_PNP_OP_NETREADY and if I make tcp connection
after
the second call then then the tcp connection succeeds. Could anybody
tell me
why the handler is called twice? My system has single NIC, XP 64, ip
address
by DHCP. Let me know if you need more info.

[PCAUSA] The DeviceName should be different (or possibly NULL) for each
call.

On my systems I get called for IP provider ready and then for NetBIOS
provider ready.

Good luck,

Thomas F. Divine

Thanks,
Hakim


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Thanks for your reply.
How do I know which provider is ready? I get NULL for pTransportName.

Hakim

“Thomas F. Divine” wrote in message news:xxxxx@ntdev…
>
>
>> -----Original Message-----
>> From: xxxxx@lists.osr.com [mailto:bounce-300340-
>> xxxxx@lists.osr.com] On Behalf Of hakim
>> Sent: Thursday, September 13, 2007 3:52 PM
>> To: Windows System Software Devs Interest List
>> Subject: [ntdev] TdiRegisterPnPHandlers
>>
>> I’m using ‘TdiRegisterPnPHandlers’ to get notification on
>> ‘BindingHandler’
>> using ‘Tcpip’ to make tcp connection during OS boot. I find that the
>> handler
>> is called twice for TDI_PNP_OP_NETREADY and if I make tcp connection
>> after
>> the second call then then the tcp connection succeeds. Could anybody
>> tell me
>> why the handler is called twice? My system has single NIC, XP 64, ip
>> address
>> by DHCP. Let me know if you need more info.
>>
> [PCAUSA] The DeviceName should be different (or possibly NULL) for each
> call.
>
> On my systems I get called for IP provider ready and then for NetBIOS
> provider ready.
>
> Good luck,
>
> Thomas F. Divine
>
>
>> Thanks,
>> Hakim
>>
>>
>>
>> —
>> NTDEV is sponsored by OSR
>>
>> For our schedule of WDF, WDM, debugging and other seminars visit:
>> http://www.osr.com/seminars
>>
>> To unsubscribe, visit the List Server section of OSR Online at
>> http://www.osronline.com/page.cfm?name=ListServer
>
>

Read the documentation for ClientPnPBindingChange carefully. It explains the
NULL case.

Study UNICODE strings and how to decipher them for non-NULL case.

Thomas F. Divine

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:bounce-300348-
xxxxx@lists.osr.com] On Behalf Of hakim
Sent: Thursday, September 13, 2007 4:58 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] TdiRegisterPnPHandlers

Thanks for your reply.
How do I know which provider is ready? I get NULL for pTransportName.

Hakim

“Thomas F. Divine” wrote in message
> news:xxxxx@ntdev…
> >
> >
> >> -----Original Message-----
> >> From: xxxxx@lists.osr.com [mailto:bounce-300340-
> >> xxxxx@lists.osr.com] On Behalf Of hakim
> >> Sent: Thursday, September 13, 2007 3:52 PM
> >> To: Windows System Software Devs Interest List
> >> Subject: [ntdev] TdiRegisterPnPHandlers
> >>
> >> I’m using ‘TdiRegisterPnPHandlers’ to get notification on
> >> ‘BindingHandler’
> >> using ‘Tcpip’ to make tcp connection during OS boot. I find that the
> >> handler
> >> is called twice for TDI_PNP_OP_NETREADY and if I make tcp connection
> >> after
> >> the second call then then the tcp connection succeeds. Could anybody
> >> tell me
> >> why the handler is called twice? My system has single NIC, XP 64, ip
> >> address
> >> by DHCP. Let me know if you need more info.
> >>
> > [PCAUSA] The DeviceName should be different (or possibly NULL) for
> each
> > call.
> >
> > On my systems I get called for IP provider ready and then for NetBIOS
> > provider ready.
> >
> > Good luck,
> >
> > Thomas F. Divine
> >
> >
> >> Thanks,
> >> Hakim
> >>
> >>
> >>
> >> —
> >> NTDEV is sponsored by OSR
> >>
> >> For our schedule of WDF, WDM, debugging and other seminars visit:
> >> http://www.osr.com/seminars
> >>
> >> To unsubscribe, visit the List Server section of OSR Online at
> >> http://www.osronline.com/page.cfm?name=ListServer
> >
> >
>
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer

Thanks a lot for this hint. Things are working.

Hakim

“Thomas F. Divine” wrote in message news:xxxxx@ntdev…
> Read the documentation for ClientPnPBindingChange carefully. It explains
> the
> NULL case.
>
> Study UNICODE strings and how to decipher them for non-NULL case.
>
> Thomas F. Divine
>
>
>> -----Original Message-----
>> From: xxxxx@lists.osr.com [mailto:bounce-300348-
>> xxxxx@lists.osr.com] On Behalf Of hakim
>> Sent: Thursday, September 13, 2007 4:58 PM
>> To: Windows System Software Devs Interest List
>> Subject: Re:[ntdev] TdiRegisterPnPHandlers
>>
>> Thanks for your reply.
>> How do I know which provider is ready? I get NULL for pTransportName.
>>
>> Hakim
>>
>> “Thomas F. Divine” wrote in message
>> news:xxxxx@ntdev…
>> >
>> >
>> >> -----Original Message-----
>> >> From: xxxxx@lists.osr.com [mailto:bounce-300340-
>> >> xxxxx@lists.osr.com] On Behalf Of hakim
>> >> Sent: Thursday, September 13, 2007 3:52 PM
>> >> To: Windows System Software Devs Interest List
>> >> Subject: [ntdev] TdiRegisterPnPHandlers
>> >>
>> >> I’m using ‘TdiRegisterPnPHandlers’ to get notification on
>> >> ‘BindingHandler’
>> >> using ‘Tcpip’ to make tcp connection during OS boot. I find that the
>> >> handler
>> >> is called twice for TDI_PNP_OP_NETREADY and if I make tcp connection
>> >> after
>> >> the second call then then the tcp connection succeeds. Could anybody
>> >> tell me
>> >> why the handler is called twice? My system has single NIC, XP 64, ip
>> >> address
>> >> by DHCP. Let me know if you need more info.
>> >>
>> > [PCAUSA] The DeviceName should be different (or possibly NULL) for
>> each
>> > call.
>> >
>> > On my systems I get called for IP provider ready and then for NetBIOS
>> > provider ready.
>> >
>> > Good luck,
>> >
>> > Thomas F. Divine
>> >
>> >
>> >> Thanks,
>> >> Hakim
>> >>
>> >>
>> >>
>> >> —
>> >> NTDEV is sponsored by OSR
>> >>
>> >> For our schedule of WDF, WDM, debugging and other seminars visit:
>> >> http://www.osr.com/seminars
>> >>
>> >> To unsubscribe, visit the List Server section of OSR Online at
>> >> http://www.osronline.com/page.cfm?name=ListServer
>> >
>> >
>>
>>
>>
>> —
>> NTDEV is sponsored by OSR
>>
>> For our schedule of WDF, WDM, debugging and other seminars visit:
>> http://www.osr.com/seminars
>>
>> To unsubscribe, visit the List Server section of OSR Online at
>> http://www.osronline.com/page.cfm?name=ListServer
>
>