I'm trying to figure out how to determing the owner (exe or name) of a file (txt or binary) that is locked. I've googled and googled and searched on here for some code that'll show me how to do this, but have come up blank (maybe wrong search string.)
I've seen an app that does this, wholockme? and it works well, however, I would like to include this in my program so I can give a description of the problem to the user, not just the file was locked, but by whom. I'm thinking this can be done via api, but don't see anything obvious.
TIA
Thanks,
James
![[afro] [afro] [afro]](/data/assets/smilies/afro.gif)
![[mad] [mad] [mad]](/data/assets/smilies/mad.gif)
"Make it idiot-proof and someone will make a better idiot." ~bumper sticker
I've seen an app that does this, wholockme? and it works well, however, I would like to include this in my program so I can give a description of the problem to the user, not just the file was locked, but by whom. I'm thinking this can be done via api, but don't see anything obvious.
TIA
Thanks,
James
![[afro] [afro] [afro]](/data/assets/smilies/afro.gif)
![[mad] [mad] [mad]](/data/assets/smilies/mad.gif)
"Make it idiot-proof and someone will make a better idiot." ~bumper sticker