Ejemplo n.º 1
0
        public int GetFileSecurity(FuserLowlevelDriver.FuserDefinition.SECURITY_INFORMATION RequestedInformation, [MarshalAs(UnmanagedType.Struct)] ref FuserLowlevelDriver.FuserDefinition.SECURITY_DESCRIPTOR pSecurityDescriptor, int nLength, ref uint lpnLengthNeeded)
        {
            if (this.filename == null)
            {
                return(-1);
            }
            if (this.filename == "")
            {
                return(-1);
            }

            return(GetFileSecurity(this.filename, RequestedInformation, ref pSecurityDescriptor, nLength, ref lpnLengthNeeded));
        }
Ejemplo n.º 2
0
 private static extern int GetFileSecurity(string lpFileName, FuserLowlevelDriver.FuserDefinition.SECURITY_INFORMATION RequestedInformation, [MarshalAs(UnmanagedType.Struct)] ref FuserLowlevelDriver.FuserDefinition.SECURITY_DESCRIPTOR pSecurityDescriptor, int nLength, ref uint lpnLengthNeeded);