Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 278
  • Last Modified:

Getting file owner with VB.net

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.
0
boucaner
Asked:
boucaner
1 Solution
 
boucanerAuthor Commented:
Found the answer.  The API has an alias, GetNamedSecurityInfoA, that was needed in the declare.  After that, it worked just fine.
0
 
moduloCommented:
PAQed with points refunded (250)

modulo
Community Support Moderator
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now