Hi,slavaim:
I used this code to modify some data , read write rename truncate all works.
but I don't know how to modify data in pagein and pageout procedure.
my code like belows:
`int
FltVnopPageinHook(
__in struct vnop_pagein_args *ap
)
}
`
for example, If a text file which content is "aaaa", after hook pagein function, I want the user who view it to see its content as "5aaa",but above codes don't work.
thanks for your reply.
Hi,slavaim: I used this code to modify some data , read write rename truncate all works. but I don't know how to modify data in pagein and pageout procedure. my code like belows: `int FltVnopPageinHook( __in struct vnop_pagein_args *ap )
{ int (origVnop)(struct vnop_pagein_args ap); origVnop = (int ()(struct vnop_pagein_args))FltGetOriginalVnodeOp( ap->a_vp, FltVopEnum_pagein ); assert( origVnop );
} ` for example, If a text file which content is "aaaa", after hook pagein function, I want the user who view it to see its content as "5aaa",but above codes don't work. thanks for your reply.