Kerem
Wed May 07 01:12:47 CDT 2008
Hi Doron,
it was just an option. Sure, he should use user defined IOCTL's.
thats the best option for this. He only should decide how he send/receives
data on both ends, e.g. buffered, etc,...
Did you used the WSK, i mean in general? I have no experience
on WSK. Can Usermode and Kernelmode connect via User2Kernel
and vice versa socket? Is any kind of security possible?
Regards
K.
--
--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Microsoft Live Space:
http://kerem-g.spaces.live.com/
Latest Open-Source Projects:
http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."
"Doron Holan [MSFT]" <doronh@online.microsoft.com> schrieb im Newsbeitrag
news:eGSmuXAsIHA.4492@TK2MSFTNGP02.phx.gbl...
> you do not want to use a socket to talk to your driver. way too much
> overhead for no gain. Just use custom IOCTLs to shuttle the data you want
> back and forth.
>
> d
>
> --
> Please do not send e-mail directly to this alias. this alias is for
> newsgroup purposes only.
> This posting is provided "AS IS" with no warranties, and confers no
rights.
>
>
> "Kerem Gümrükcü" <kareem114@hotmail.com> wrote in message
> news:eVlTi5%23rIHA.672@TK2MSFTNGP02.phx.gbl...
> > Hi Kid,
> >
> >>How could I send data to an application in kernel mode ?
> >
> > You mean to your Driver in Kernel Mode. You can send
> > any data to your driver by using IOCTL (DeviceIoControl function)
> > and handling IRP_MJ_DEVICE_CONTROL in your Kernel Driver.
> > Or by opening a handle to your Driver/Device after your
> > driver has been loaded and created a symbolic link that the
> > user mode application can open and write/read to/from
> > it. Then you handle IRP_MJ_READ and IRP_MJ_WRITE,
> > and some others, which depends on your drivers layout.
> > There are some other (exotic) ways but these are the standartized
> > and well documented ones you should use. Vista offers something
> > named WSK, which is a User Mode like Kernel Socket interface
> > for TCP/IP Communication, but i dont know how to use it, though
> > it should be very simillar to usermode sockets. I did not use WSK
> > until today, so i dont know how usefull it is,... check if you like.
> >
> > See here:
> > [Winsock Kernel]
> >
http://msdn.microsoft.com/en-us/library/aa504179.aspx
> >
> > Here are some good basic tutorials i recommend to you:
> > Complete the Series and you have "basic" driver development
> > knowledge you can extend by reading the DDK, which is
> > a MUST!
> >
> > [Driver Development Part 1: Introduction to Drivers]
> >
http://www.codeproject.com/KB/system/driverdev.aspx
> >
> > Windows DDK and Windows SDK are your best friends,...
> >
> > Regards
> >
> > Kerem
> >
> > --
> > --
> > -----------------------
> > Beste Grüsse / Best regards / Votre bien devoue
> > Kerem Gümrükcü
> > Microsoft Live Space:
http://kerem-g.spaces.live.com/
> > Latest Open-Source Projects:
http://entwicklung.junetz.de
> > -----------------------
> > "This reply is provided as is, without warranty express or implied."
> >
> >
>