Re: Get running process by volume

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi mate

I think you can take advantage on the fact that, unlike actual file IO,
opening file handle is* ALWAYS* synchronous operation, so that FS
drivers receive IRP_MJ_CREATE request in context of a thread that has
made CreateFile() call. Therefore, you can write FS filter and make it
fail all IRP_MJ_CREATE requests to files, located in your target
directory (apart from the one that are sent by your process, of
course). Once no one, apart from your process, is able to open file
handles, no one, apart from your process, will be able to read from or
write to these files

Anton Bassov

Zeeshan wrote:
I want to lock a partition so the no IO operation can be done except my own
process. Some how i m not able in certain cases. Now i want to get the
information about the running processes in the system and identify the
process which are reading/writing or querying informtion on that particular
partition. What must be the possible solution???

To be precise the answer i want is to get the list of running processes at
certain volume of path

I ll be grateful if anyone can help me in this regard

.