Jump to content
Excelsior Forums
virtual_2d

GetFileSecurity

Recommended Posts

I'm trying to call GetFileSecurity and am getting "Attempt to access invalid address" error. Here is the code in question:

       final int ownerSecurityInformation = 0x1;

           com.excelsior.xFunction.xFunction getFileSecurity = new com.excelsior.xFunction.xFunction("advapi32",

               "int GetFileSecurityA(CSTRING, int, char*, int, int*)");            

           com.excelsior.xFunction.Argument args[] = new com.excelsior.xFunction.Argument[5];

           args[0] = new com.excelsior.xFunction.Argument(filename, com.excelsior.xFunction.Argument.CSTRING);

           args[1] = com.excelsior.xFunction.Argument.create("int", new Integer(ownerSecurityInformation));

           args[2] = com.excelsior.xFunction.Pointer.NULL;

           args[3] = com.excelsior.xFunction.Argument.create("int", new Integer(0));

           args[4] = com.excelsior.xFunction.Pointer.create("int*");

Any ideas what could be wrong?

-Dmitri

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×