Hi all
I am writing a VxD in 98. I am hooking to the IFSMGR functions. The requirement i
Whenevr a File read happens The VxD will block the call and inform the ring 3 application. Then the ring3 app will decide whether to allow or deny the request.
For communication between the ring0 and ring 3 i am using a shared event
When i am blocking the Read request in the IFSMGR read
I am using a Wait_Semaphore(
Once the response comes We will signal the semaphore
It is working for some files and system hangs for other
Here is the pseudo code of what iam doin
IFS_MGR REa
Get The File Nam
Copy the file name to a structur
structure.SemaphoreHandle = Create_Semaphore(0)
Put structure in Queu
_VWin32_SignalEvent( shared event)
Wait_Semaphore(structure.SemaphoreHandle)
Allow/deny the reques
End IFMGR REA
whenever the ring 3 issues an ioctl to read the request
Read from queu
Whenevr the ring 3 is giving a respons
Signal_Semaphore(structure.SemaphoreHandle
This works fine with notepad
But when i am accessign anything in c:\windows, All dll
it is hanging
Is the code is reentrant as in case of 2000
Thank
Jone