Hi,
I have this strange situation, I am combining the minifilter model with the shadow devices approach. If some user app open a file through the shadow device and then MapViewOfFile() nothings is wrong but if you read from the buffer mapped i observe that the reference count of the shadow device is incremented and never go down although the user app close all the handles and exit. That incremented reference count is the reason that my driver can’t unload. All the minifilters functions are called and return ok.
Any suggestion???
Thanks in advance,
Yohamnes
Hi,
I am close to the solution. I found that in some cases despite of i was called in user mode FlushViewOfFile, UnMapViewOfFile and all the handles are closed, the system hold the reference to the view (and the file object consequently) a long time. After that time my shadow device is unloaded. I was looking in the doc for FltFlushBuffers or any similar, is that the right way???
Thanks in advance,
Yohamnes