Hi
I want to write a driver that makes C:\dir1 become D:\dir2. That is all
opertions on C:\dir1 is like on D:\dir2.
I hooked ZwCreateFile, ZwOpenFile… and changed C:\dir1 to D:\dir2 before
calling real Zw routines. This worked, but not with Microsoft Word.
Could you tell my why, please?
By the way, I’d like to know how to allocate user memory from kernel mode.
I read earlier mails in the archive and found ZwAllocateVirtualMemory, but
i failed to call this routine. It returned STATUS_INVALID_HANDLE (I passed
PsGetCurrentProcessId() to it as ProcessHandle). Could you give me an example
on how to do this, please?
Regards,
Bi Cờ Lao