Re: tcpip devices

Why can’t?
Even in SDK there is an example who to query ‘tcp’ device created by
‘tcpip.sys’ from user mode using DeviceIoControl
And by the way where I can find info about ways of communication between
user mode and kernel mode,
So far I’ve heard of

  1. Create device and make user mode call DeviceIoControl
  2. LPC (local proc call ) - where’s docs?
  3. int 2Eh but how to install your own handler or function( like IIS does)

Sergo.

Hi Sergo,

The LPC is document in the :

Inside Microsoft Windows 2000

Devide Solomon

Mark Russinovich

Good Luck,


From: “Sergo”

>Reply-To: “Windows System Software Devs Interest List”
>To: “Windows System Software Devs Interest List”
>Subject: [ntdev] Re: tcpip devices
>Date: Mon, 8 Dec 2003 00:38:57 -0500
>
>Why can’t?
>Even in SDK there is an example who to query ‘tcp’ device created by
>‘tcpip.sys’ from user mode using DeviceIoControl
>And by the way where I can find info about ways of communication between
>user mode and kernel mode,
>So far I’ve heard of
>1) Create device and make user mode call DeviceIoControl
>2) LPC (local proc call ) - where’s docs?
>3) int 2Eh but how to install your own handler or function( like IIS does)
>
>Sergo.
>
>
>—
>Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
>
>You are currently subscribed to ntdev as: xxxxx@hotmail.com
>To unsubscribe send a blank email to xxxxx@lists.osr.com


Marriage? Join BharatMatrimony.com for free.

Hi, Yatindra
I have the book. It mentions them but doesn’t say how to use them.
Do you have any info about ‘tcpip.sys’?
“yatindra vaishnav” wrote in message news:xxxxx@ntdev…
Hi Sergo,

The LPC is document in the :

Inside Microsoft Windows 2000

Devide Solomon

Mark Russinovich

Good Luck,



>From: “Sergo”
>Reply-To: “Windows System Software Devs Interest List”
>To: “Windows System Software Devs Interest List”
>Subject: [ntdev] Re: tcpip devices
>Date: Mon, 8 Dec 2003 00:38:57 -0500
>
>Why can’t?
>Even in SDK there is an example who to query ‘tcp’ device created by
>‘tcpip.sys’ from user mode using DeviceIoControl
>And by the way where I can find info about ways of communication between
>user mode and kernel mode,
>So far I’ve heard of
>1) Create device and make user mode call DeviceIoControl
>2) LPC (local proc call ) - where’s docs?
>3) int 2Eh but how to install your own handler or function( like IIS does)
>
>Sergo.
>
>
>—
>Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
>
>You are currently subscribed to ntdev as: xxxxx@hotmail.com
>To unsubscribe send a blank email to xxxxx@lists.osr.com

------------------------------------------------------------------------------
Marriage? Join BharatMatrimony.com for free.

Hi Sergo,

Tell me what information you want to have on tcpip.sys?

Good Luck,



From: “Sergo” <sicompanyatyahoo.com>

>Reply-To: “Windows System Software Devs Interest List”
>To: “Windows System Software Devs Interest List”
>Subject: [ntdev] Re: tcpip devices
>Date: Mon, 8 Dec 2003 23:55:11 -0600
>
>Hi, Yatindra
>I have the book. It mentions them but doesn’t say how to use them.
>Do you have any info about ‘tcpip.sys’?
> “yatindra vaishnav” wrote in message news:xxxxx@ntdev…
> Hi Sergo,
>
> The LPC is document in the :
>
> Inside Microsoft Windows 2000
>
> Devide Solomon
>
> Mark Russinovich
>
>
> Good Luck,
>
>
>
>
> >From: “Sergo”
> >Reply-To: “Windows System Software Devs Interest List”
> >To: “Windows System Software Devs Interest List”
> >Subject: [ntdev] Re: tcpip devices
> >Date: Mon, 8 Dec 2003 00:38:57 -0500
> >
> >Why can’t?
> >Even in SDK there is an example who to query ‘tcp’ device created by
> >‘tcpip.sys’ from user mode using DeviceIoControl
> >And by the way where I can find info about ways of communication between
> >user mode and kernel mode,
> >So far I’ve heard of
> >1) Create device and make user mode call DeviceIoControl
> >2) LPC (local proc call ) - where’s docs?
> >3) int 2Eh but how to install your own handler or function( like IIS does)
> >
> >Sergo.
> >
> >
> >—
> >Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
> >
> >You are currently subscribed to ntdev as: xxxxx@hotmail.com
> >To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>------------------------------------------------------------------------------
> Marriage? Join BharatMatrimony.com for free.
>
>—
>Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
>
>You are currently subscribed to ntdev as: xxxxx@hotmail.com
>To unsubscribe send a blank email to xxxxx@lists.osr.com
</sicompanyatyahoo.com>


Love shopping online? Get this e credit card. Save cost, add value!

Just IOCTL description and format of input buffers for devices
it creates. The idea is to skip Winsock ( and afd.sys ).

“yatindra vaishnav” wrote in message news:xxxxx@ntdev…
Hi Sergo,

Tell me what information you want to have on tcpip.sys?

Good Luck,



>From: “Sergo”
>Reply-To: “Windows System Software Devs Interest List”
>To: “Windows System Software Devs Interest List”
>Subject: [ntdev] Re: tcpip devices
>Date: Mon, 8 Dec 2003 23:55:11 -0600
>
>Hi, Yatindra
>I have the book. It mentions them but doesn’t say how to use them.
>Do you have any info about ‘tcpip.sys’?
> “yatindra vaishnav” wrote in message news:xxxxx@ntdev…
> Hi Sergo,
>
> The LPC is document in the :
>
> Inside Microsoft Windows 2000
>
> Devide Solomon
>
> Mark Russinovich
>
>
> Good Luck,
>
>
>
>
> >From: “Sergo”
> >Reply-To: “Windows System Software Devs Interest List”
> >To: “Windows System Software Devs Interest List”
> >Subject: [ntdev] Re: tcpip devices
> >Date: Mon, 8 Dec 2003 00:38:57 -0500
> >
> >Why can’t?
> >Even in SDK there is an example who to query ‘tcp’ device created by
> >‘tcpip.sys’ from user mode using DeviceIoControl
> >And by the way where I can find info about ways of communication between
> >user mode and kernel mode,
> >So far I’ve heard of
> >1) Create device and make user mode call DeviceIoControl
> >2) LPC (local proc call ) - where’s docs?
> >3) int 2Eh but how to install your own handler or function( like IIS does)
> >
> >Sergo.
> >
> >
> >—
> >Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
> >
> >You are currently subscribed to ntdev as: xxxxx@hotmail.com
> >To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>------------------------------------------------------------------------------
> Marriage? Join BharatMatrimony.com for free.
>
>—
>Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
>
>You are currently subscribed to ntdev as: xxxxx@hotmail.com
>To unsubscribe send a blank email to xxxxx@lists.osr.com

------------------------------------------------------------------------------
Love shopping online? Get this e credit card. Save cost, add value!

This question comes up over and over on this list. You can’t do it
directly from user-mode. Read up on the TDI section of the DDK. All of
the structures, I/O control codes, and semantics are described there.

– arlie

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Sergo
Sent: Sunday, December 14, 2003 8:57 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Re: tcpip devices

Just IOCTL description and format of input buffers for devices
it creates. The idea is to skip Winsock ( and afd.sys ).

“yatindra vaishnav” wrote in message
news:xxxxx@ntdev…
Hi Sergo,
Tell me what information you want to have on tcpip.sys?
Good Luck,

From user mode? This will give you no advantages.
Just use WinSock, but to it smartly.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: Sergo
Newsgroups: ntdev
To: Windows System Software Devs Interest List
Sent: Monday, December 15, 2003 4:57 AM
Subject: [ntdev] Re: tcpip devices

Just IOCTL description and format of input buffers for devices
it creates. The idea is to skip Winsock ( and afd.sys ).

“yatindra vaishnav” wrote in message news:xxxxx@ntdev…
Hi Sergo,

Tell me what information you want to have on tcpip.sys?

Good Luck,



>From: “Sergo”
>Reply-To: “Windows System Software Devs Interest List”
>To: “Windows System Software Devs Interest List”
>Subject: [ntdev] Re: tcpip devices
>Date: Mon, 8 Dec 2003 23:55:11 -0600
>
>Hi, Yatindra
>I have the book. It mentions them but doesn’t say how to use them.
>Do you have any info about ‘tcpip.sys’?
> “yatindra vaishnav” wrote in message news:xxxxx@ntdev…
> Hi Sergo,
>
> The LPC is document in the :
>
> Inside Microsoft Windows 2000
>
> Devide Solomon
>
> Mark Russinovich
>
>
> Good Luck,
>
>
>
>
> >From: “Sergo”
> >Reply-To: “Windows System Software Devs Interest List”
> >To: “Windows System Software Devs Interest List”
> >Subject: [ntdev] Re: tcpip devices
> >Date: Mon, 8 Dec 2003 00:38:57 -0500
> >
> >Why can’t?
> >Even in SDK there is an example who to query ‘tcp’ device created by
> >‘tcpip.sys’ from user mode using DeviceIoControl
> >And by the way where I can find info about ways of communication between
> >user mode and kernel mode,
> >So far I’ve heard of
> >1) Create device and make user mode call DeviceIoControl
> >2) LPC (local proc call ) - where’s docs?
> >3) int 2Eh but how to install your own handler or function( like IIS does)
> >
> >Sergo.
> >
> >
> >—
> >Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
> >
> >You are currently subscribed to ntdev as: xxxxx@hotmail.com
> >To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>------------------------------------------------------------------------------
> Marriage? Join BharatMatrimony.com for free.
>
>—
>Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
>
>You are currently subscribed to ntdev as: xxxxx@hotmail.com
>To unsubscribe send a blank email to xxxxx@lists.osr.com

----------------------------------------------------------------------------
Love shopping online? Get this e credit card. Save cost, add value!

Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

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

Hi Sergo,

Use the TDI Filter driver, and you will get all the details of the IOCTLS what tcpip.sys will give you.

Good Luck,



From: “Sergo” <sicompanyatyahoo.com>

>Reply-To: “Windows System Software Devs Interest List”
>To: “Windows System Software Devs Interest List”
>Subject: [ntdev] Re: tcpip devices
>Date: Sun, 14 Dec 2003 19:57:01 -0600
>
>Just IOCTL description and format of input buffers for devices
>it creates. The idea is to skip Winsock ( and afd.sys ).
>
>“yatindra vaishnav” wrote in message news:xxxxx@ntdev…
> Hi Sergo,
>
> Tell me what information you want to have on tcpip.sys?
>
> Good Luck,
>
>
>
>
>
> >From: “Sergo”
> >Reply-To: “Windows System Software Devs Interest List”
> >To: “Windows System Software Devs Interest List”
> >Subject: [ntdev] Re: tcpip devices
> >Date: Mon, 8 Dec 2003 23:55:11 -0600
> >
> >Hi, Yatindra
> >I have the book. It mentions them but doesn’t say how to use them.
> >Do you have any info about ‘tcpip.sys’?
> > “yatindra vaishnav” wrote in message news:xxxxx@ntdev…
> > Hi Sergo,
> >
> > The LPC is document in the :
> >
> > Inside Microsoft Windows 2000
> >
> > Devide Solomon
> >
> > Mark Russinovich
> >
> >
> > Good Luck,
> >
> >
> >
> >
> > >From: “Sergo”
> > >Reply-To: “Windows System Software Devs Interest List”
> > >To: “Windows System Software Devs Interest List”
> > >Subject: [ntdev] Re: tcpip devices
> > >Date: Mon, 8 Dec 2003 00:38:57 -0500
> > >
> > >Why can’t?
> > >Even in SDK there is an example who to query ‘tcp’ device created by
> > >‘tcpip.sys’ from user mode using DeviceIoControl
> > >And by the way where I can find info about ways of communication between
> > >user mode and kernel mode,
> > >So far I’ve heard of
> > >1) Create device and make user mode call DeviceIoControl
> > >2) LPC (local proc call ) - where’s docs?
> > >3) int 2Eh but how to install your own handler or function( like IIS does)
> > >
> > >Sergo.
> > >
> > >
> > >—
> > >Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
> > >
> > >You are currently subscribed to ntdev as: xxxxx@hotmail.com
> > >To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
> >------------------------------------------------------------------------------
> > Marriage? Join BharatMatrimony.com for free.
> >
> >—
> >Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
> >
> >You are currently subscribed to ntdev as: xxxxx@hotmail.com
> >To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>------------------------------------------------------------------------------
> Love shopping online? Get this e credit card. Save cost, add value!
>
>—
>Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
>
>You are currently subscribed to ntdev as: xxxxx@hotmail.com
>To unsubscribe send a blank email to xxxxx@lists.osr.com
</sicompanyatyahoo.com>


Watching a pirated movie? Stop now! Say no to piracy!

In fact, I can.
There is even an example in SDK.
see
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devnotes/winprog/tcp_request_query_information_ex.asp

The problem SDK doesn’t publish codes for sending/receiving something, (like
it does for hard drives, CD, LPT).

“Arlie Davis” wrote in message news:xxxxx@ntdev…
>
> This question comes up over and over on this list. You can’t do it
> directly from user-mode. Read up on the TDI section of the DDK. All of
> the structures, I/O control codes, and semantics are described there.
>
> – arlie
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Sergo
> Sent: Sunday, December 14, 2003 8:57 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] Re: tcpip devices
>
>
> Just IOCTL description and format of input buffers for devices
> it creates. The idea is to skip Winsock ( and afd.sys ).
>
> “yatindra vaishnav” wrote in message
> news:xxxxx@ntdev…
> Hi Sergo,
> Tell me what information you want to have on tcpip.sys?
> Good Luck,
>
>
>
>
>

Sergo,

That ioctl is NOT talking to any of the protocols TCP, UDP etc, it is an
interface to the stack MIB, it’s the ioctl that tools such as ARP and ROUTE
use to read and configure the stack. The ioctl has always been there,
though I have to say that this is the first time that I’ve seen the details
documented. I had to reverse engineer them about 8 years ago.

As an ioctl this is NOT doing what you keep deceiving yourself into
believing it might be doing. Please listen to the people here and
elsewhere, they have been telling you the truth, you can NOT use ioctls to
control the TCP stack from user-mode.

Why do you want to ? The mainline code path in the Winsock DLLs often
takes less than 50 instructions to switch to kernel-mode. I can’t speak
for AFD.SYS, but I understand that the main I/O code path there is also
very efficient.

The reason the SDK does not publish ioctls for sending and receiving on a
transport stack is because there aren’t any. What the SDK does publish as
the interface to transport stacks is Windows Sockets 2 calls and some
Microsoft extensions.

regards,

Mark.

At 06:31 AM 12/16/2003, Sergo wrote:

In fact, I can.
There is even an example in SDK.
see
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devnotes/winprog/tcp_request_query_information_ex.asp

The problem SDK doesn’t publish codes for sending/receiving something, (like
it does for hard drives, CD, LPT).

“Arlie Davis” wrote in message news:xxxxx@ntdev…
> >
> > This question comes up over and over on this list. You can’t do it
> > directly from user-mode. Read up on the TDI section of the DDK. All of
> > the structures, I/O control codes, and semantics are described there.
> >
> > – arlie
> >
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of Sergo
> > Sent: Sunday, December 14, 2003 8:57 PM
> > To: Windows System Software Devs Interest List
> > Subject: [ntdev] Re: tcpip devices
> >
> >
> > Just IOCTL description and format of input buffers for devices
> > it creates. The idea is to skip Winsock ( and afd.sys ).
> >
> > “yatindra vaishnav” wrote in message
> > news:xxxxx@ntdev…
> > Hi Sergo,
> > Tell me what information you want to have on tcpip.sys?
> > Good Luck,
> >
> >
> >
> >
> >
>
>
>
>—
>Questions? First check the Kernel Driver FAQ at
>http://www.osronline.com/article.cfm?id=256
>
>You are currently subscribed to ntdev as: xxxxx@muttsnuts.com
>To unsubscribe send a blank email to xxxxx@lists.osr.com

Querying information from an existing handle is one thing. Advancing
TDI state is quite another. (e.g. bind, send, receive, etc.) Look up
IRP_MJ_INTERNAL_DEVICE_CONTROL in the TDI specs. TDI protocols are
expected to provide most of their semantics through
IRP_MJ_INTERNAL_DEVICE_CONTROL. They are expected to expose a SUBSET
through IRP_MJ_DEVICE_CONTROL – the subset that is safely accessible
through user-mode applications.

– arlie

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Sergo
Sent: Tuesday, December 16, 2003 1:31 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Re: tcpip devices

In fact, I can.
There is even an example in SDK.
see
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devnote
s/winprog/tcp_request_query_information_ex.asp

The problem SDK doesn’t publish codes for sending/receiving something,
(like it does for hard drives, CD, LPT).

“Arlie Davis” wrote in message news:xxxxx@ntdev…
>
> This question comes up over and over on this list. You can’t do it
> directly from user-mode. Read up on the TDI section of the DDK. All
> of the structures, I/O control codes, and semantics are described
> there.
>
> – arlie
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Sergo
> Sent: Sunday, December 14, 2003 8:57 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] Re: tcpip devices
>
>
> Just IOCTL description and format of input buffers for devices it
> creates. The idea is to skip Winsock ( and afd.sys ).
>
> “yatindra vaishnav” wrote in message
> news:xxxxx@ntdev… Hi Sergo,
> Tell me what information you want to have on tcpip.sys?
> Good Luck,
>
>
>
>
>


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

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