tags:

views:

197

answers:

1

I have a problem that I am hoping someone can help with. I have a c# application that needs to get the File Owner information from a file that resides on a Linux server. The .Net System.IO GetFileInfo throws an exception and the WMI calls fail. I know there is the PInvoke method GetFileOwner however the example on pinvoke.net is not complete and does not compile. Does anyone have a good complete example or a link to find this information?

This is a .Net c# 3.5 windows application and does have permissions to access the file, however I want to get the owner information before it does the rest of the processing.

Thanks

+1  A: 

This is resolved. If someone needs the code please leave a note.

Consulting Mechanic
I don't need it, but it would be nice if you posted the solution for all to see. You never know, someone else might have the same question.
Chris Shouts
You really just should post the solution here. It's of no use for anybody to collect more "plzsendtehcodez kthx" answers...
sth
The purpose of Stack Overflow is to collect good answers to relevant programming-related questions. You should automatically default to posting the actual solution, instead of stating that a solution exists.
Christopher Parker