Ricardo
Ricardo

Reputation: 1023

Is there a way to get the PID from a process that is blocking a file using C#?

Is there a way to get the PID from a process that is blocking a file using C#?

Upvotes: 3

Views: 367

Answers (1)

ZombieSheep
ZombieSheep

Reputation: 29963

I don't know whether it can be done entirely within the framework, but maybe you could call out to SysInternals' Handle.exe to do the heavy lifting here?

Upvotes: 6

Related Questions