internal static extern int GetSecurityInfo( [In] SafeHandle handle, [In] SecurityObjectType objectType, [In] SecurityInformation securityInformation, [In] IntPtr sidOwner, [In] IntPtr sidGroup, [In] IntPtr dacl, [In] IntPtr sacl, [Out] out SecurityDescriptorSafePtr securityDescriptor);
public unsafe static extern WindowsError GetSecurityInfo( SafeHandle handle, SecurityObjectType ObjectType, SecurityInformation SecurityInfo, SID **ppsidOwner = null, SID **ppsidGroup = null, ACL **ppDacl = null, ACL **ppSacl = null, SECURITY_DESCRIPTOR **ppSecurityDescriptor = null );
public DataTable GetOwnFunction(Guid operatorId, int method) { SecurityObjectType objType = SecurityObjectType.Function; string sql = @"select f.functionId,f.FunctionName from accessControlList a,FunctionList f where a.operatorId=@operId and a.OperatorMethod=@operMethod and a.ObjectType=@objType and a.ObjectId=f.FunctionId"; SqlParameter[] Parameters = new SqlParameter[3]; Parameters[0] = new SqlParameter("@operId", SqlDbType.UniqueIdentifier); Parameters[1] = new SqlParameter("@operMethod", SqlDbType.TinyInt); Parameters[2] = new SqlParameter("@objType", SqlDbType.TinyInt); Parameters[0].Value = operatorId; Parameters[1].Value = method; Parameters[2].Value = (int)objType; return(SqlHelper.ExecuteDataset(CommonInfo.ConQJVRMS, CommandType.Text, sql, Parameters).Tables[0]); }
public SecurityObject(Guid objectId, SecurityObjectType objType) { this.objectId = objectId; this.objectType = objType; }
public SecurityObject(Guid objectId, SecurityObjectType objType) { this.objectId = objectId; this.objectType = objType; }