Jump to content
Excelsior Forums

virtual_2d

Members
  • Content count

    0
  • Joined

  • Last visited

    Never

Community Reputation

0 Neutral

About virtual_2d

  • Rank
    Newbie
  • Birthday 01/01/01
  1. GetFileSecurity

    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
×