Getting file owner with

Posted on 2004-11-18
Last Modified: 2011-09-20
Hello all,

I am trying to get the owner of a file for a file out on the network.  Research has lead me to the API  GetNamedSecurityInfo, but whenever I call it, it returns a 'cannot find entry point' error.  There are examples of this API out there, but this error keeps popping up.  Perhaps it is the signature, but it checks out with the documentation.  Anyone know why this would be happening?

For files on the local drive, WMI works just fine.  It's the files on the network that necessitate using the API.  Is there another way to pull this info?

Thanks in advance.
Question by:boucaner

    Author Comment

    Found the answer.  The API has an alias, GetNamedSecurityInfoA, that was needed in the declare.  After that, it worked just fine.

    Accepted Solution

    PAQed with points refunded (250)

    Community Support Moderator

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
    If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
    This video discusses moving either the default database or any database to a new volume.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    25 Experts available now in Live!

    Get 1:1 Help Now