Can I trnsfer data to other computer in filter driver?
-
Hi, I am new in driver writing. So I have many questions. Can I send data to another computeron the network(TCP/IP) in filter driver's routine? e.g., I write a block of data to a backup server when i detected that this block of data is writed to local disk. Thanks a lot. :-O
-
Hi, I am new in driver writing. So I have many questions. Can I send data to another computeron the network(TCP/IP) in filter driver's routine? e.g., I write a block of data to a backup server when i detected that this block of data is writed to local disk. Thanks a lot. :-O
I don't think you can, you don't have a socket library in kernel mode AFAIK. You (and most definitely the user of this) would probably be better of with pairing it with a service and sending the data from the service anyway.
-
I don't think you can, you don't have a socket library in kernel mode AFAIK. You (and most definitely the user of this) would probably be better of with pairing it with a service and sending the data from the service anyway.
-
Is that service runing in kernel mode, then it can expote it's functions to driver? or the driver triger the service as an interrupt service routine?
Is that service runing in kernel mode Services are much like normal processes in that they run in user-mode, often under the System account. As for how you signal your service and move the data to be sent between the service and the driver... Well, something you'd have to do yoursel, no? :-) You might want to have a look at e.g. FileMon from sysinternals. IIRC there's already a functioning driver<->app communication set up there and you could probably "borrow" a few snippets.
-
Is that service runing in kernel mode Services are much like normal processes in that they run in user-mode, often under the System account. As for how you signal your service and move the data to be sent between the service and the driver... Well, something you'd have to do yoursel, no? :-) You might want to have a look at e.g. FileMon from sysinternals. IIRC there's already a functioning driver<->app communication set up there and you could probably "borrow" a few snippets.
The Filemon use a timer in user mode part, when it is the time then it get information from the output buffer. That not what i want, i need driver to triger some thing to do the data transfer not passive save it then wait :(( I donot know if there is one book on this topic?
-
The Filemon use a timer in user mode part, when it is the time then it get information from the output buffer. That not what i want, i need driver to triger some thing to do the data transfer not passive save it then wait :(( I donot know if there is one book on this topic?
The Filemon use a timer in user mode part Ouch, didn't know that. You should probably have a look at: www.ntfsd.org www.ntdev.org ++luck