TDI question

Hello,

From DDK

“Callers of TdiBuildInternalDeviceControlIrp must be running at IRQL =
PASSIVE_LEVEL. Consequently, a client should preallocate a few IRPs with
this function so the client can use them to submit TDI_XXX requests when it
is running at a higher IRQL.”

TdiBuildInternalDeviceControlIrp requests FileObject as a parameter. How can
I prealocate IRP to send it down in TdiDispatchInternalDeviceControl
handler, which can run on IRQL DISPATCH_LEVEL, if I don’t have FileObject
yet?

Or maybe there is another way to create IRP and send it to the transport
from TdiDispatchInternalDeviceControl?

Thank you,
Leonid

Leonid,
Are you writing a client, or a TDI protocol driver?
If it is a client, pre allocate at the time of opening the connection.

-Srin.

-----Original Message-----
From: Leonid Meyerovich [mailto:xxxxx@v-one.com]
Sent: Wednesday, June 25, 2003 12:19 PM
To: NT Developers Interest List
Subject: [ntdev] TDI question

Hello,

From DDK

“Callers of TdiBuildInternalDeviceControlIrp must be running at IRQL =
PASSIVE_LEVEL. Consequently, a client should preallocate a few IRPs
with
this function so the client can use them to submit TDI_XXX requests
when
it
is running at a higher IRQL.”

TdiBuildInternalDeviceControlIrp requests FileObject as a parameter.
How
can
I prealocate IRP to send it down in TdiDispatchInternalDeviceControl
handler, which can run on IRQL DISPATCH_LEVEL, if I don’t have
FileObject
yet?

Or maybe there is another way to create IRP and send it to the
transport
from TdiDispatchInternalDeviceControl?

Thank you,
Leonid


You are currently subscribed to ntdev as: xxxxx@nai.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Srin,

I am writing TDI filter, so I think I cannot sugest that my Dispatch handler
run below DISPATCH_LEVEL.
Leonid

----- Original Message -----
From:
To: “NT Developers Interest List”
Sent: Wednesday, June 25, 2003 4:11 PM
Subject: [ntdev] RE: TDI question

Leonid,
Are you writing a client, or a TDI protocol driver?
If it is a client, pre allocate at the time of opening the connection.

-Srin.

> -----Original Message-----
> From: Leonid Meyerovich [mailto:xxxxx@v-one.com]
> Sent: Wednesday, June 25, 2003 12:19 PM
> To: NT Developers Interest List
> Subject: [ntdev] TDI question
>
> Hello,
>
> From DDK
>
> “Callers of TdiBuildInternalDeviceControlIrp must be running at IRQL =
> PASSIVE_LEVEL. Consequently, a client should preallocate a few IRPs
with
> this function so the client can use them to submit TDI_XXX requests
when
> it
> is running at a higher IRQL.”
>
> TdiBuildInternalDeviceControlIrp requests FileObject as a parameter.
How
> can
> I prealocate IRP to send it down in TdiDispatchInternalDeviceControl
> handler, which can run on IRQL DISPATCH_LEVEL, if I don’t have
FileObject
> yet?
>
> Or maybe there is another way to create IRP and send it to the
transport
> from TdiDispatchInternalDeviceControl?
>
> Thank you,
> Leonid
>
>
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@nai.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@v-one.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

The wa I got around a problem like this was to allocate my own
IRP using IoAllocateIrp().

Remember though you need to clean up an irp you allocate this
way.

-Jeff

-----Original Message-----
From: Leonid Meyerovich [mailto:xxxxx@v-one.com]
Sent: Thursday, June 26, 2003 7:52 AM
To: NT Developers Interest List
Subject: [ntdev] RE: TDI question

Srin,

I am writing TDI filter, so I think I cannot sugest that my Dispatch handler
run below DISPATCH_LEVEL.
Leonid

----- Original Message -----
From:
To: “NT Developers Interest List”
Sent: Wednesday, June 25, 2003 4:11 PM
Subject: [ntdev] RE: TDI question

Leonid,
Are you writing a client, or a TDI protocol driver?
If it is a client, pre allocate at the time of opening the connection.

-Srin.

> -----Original Message-----
> From: Leonid Meyerovich [mailto:xxxxx@v-one.com]
> Sent: Wednesday, June 25, 2003 12:19 PM
> To: NT Developers Interest List
> Subject: [ntdev] TDI question
>
> Hello,
>
> From DDK
>
> “Callers of TdiBuildInternalDeviceControlIrp must be running at IRQL =
> PASSIVE_LEVEL. Consequently, a client should preallocate a few IRPs
with
> this function so the client can use them to submit TDI_XXX requests
when
> it
> is running at a higher IRQL.”
>
> TdiBuildInternalDeviceControlIrp requests FileObject as a parameter.
How
> can
> I prealocate IRP to send it down in TdiDispatchInternalDeviceControl
> handler, which can run on IRQL DISPATCH_LEVEL, if I don’t have
FileObject
> yet?
>
> Or maybe there is another way to create IRP and send it to the
transport
> from TdiDispatchInternalDeviceControl?
>
> Thank you,
> Leonid
>
>
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@nai.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@v-one.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@concord.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
the latest virus scan software available for the presence of computer
viruses.

Thank you
Leonid
----- Original Message -----
From: “Curless, Jeffrey”
To: “NT Developers Interest List”
Sent: Thursday, June 26, 2003 12:22 PM
Subject: [ntdev] RE: TDI question

> The wa I got around a problem like this was to allocate my own
> IRP using IoAllocateIrp().
>
> Remember though you need to clean up an irp you allocate this
> way.
>
> -Jeff
>
> -----Original Message-----
> From: Leonid Meyerovich [mailto:xxxxx@v-one.com]
> Sent: Thursday, June 26, 2003 7:52 AM
> To: NT Developers Interest List
> Subject: [ntdev] RE: TDI question
>
>
> Srin,
>
> I am writing TDI filter, so I think I cannot sugest that my Dispatch
handler
> run below DISPATCH_LEVEL.
> Leonid
>
> ----- Original Message -----
> From:
> To: “NT Developers Interest List”
> Sent: Wednesday, June 25, 2003 4:11 PM
> Subject: [ntdev] RE: TDI question
>
>
> Leonid,
> Are you writing a client, or a TDI protocol driver?
> If it is a client, pre allocate at the time of opening the connection.
>
> -Srin.
>
> > -----Original Message-----
> > From: Leonid Meyerovich [mailto:xxxxx@v-one.com]
> > Sent: Wednesday, June 25, 2003 12:19 PM
> > To: NT Developers Interest List
> > Subject: [ntdev] TDI question
> >
> > Hello,
> >
> > From DDK
> >
> > “Callers of TdiBuildInternalDeviceControlIrp must be running at IRQL =
> > PASSIVE_LEVEL. Consequently, a client should preallocate a few IRPs
> with
> > this function so the client can use them to submit TDI_XXX requests
> when
> > it
> > is running at a higher IRQL.”
> >
> > TdiBuildInternalDeviceControlIrp requests FileObject as a parameter.
> How
> > can
> > I prealocate IRP to send it down in TdiDispatchInternalDeviceControl
> > handler, which can run on IRQL DISPATCH_LEVEL, if I don’t have
> FileObject
> > yet?
> >
> > Or maybe there is another way to create IRP and send it to the
> transport
> > from TdiDispatchInternalDeviceControl?
> >
> > Thank you,
> > Leonid
> >
> >
> >
> >
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@nai.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@v-one.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@concord.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
> This footnote also confirms that this email message has been swept by
> the latest virus scan software available for the presence of computer
> viruses.
>

>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@v-one.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

> Or maybe there is another way to create IRP and send it to the
transport

from TdiDispatchInternalDeviceControl?

Just use the usual IoAllocateIrp to create an
MN_INTERNAL_DEVICE_CONTROL IRP. See the definition of
TdiBuildInternalDeviceControlIrp macro for details.

Max