public MsrpcLsarOpenPolicy2(string server, int access, LsaPolicyHandle policyHandle
			) : base(server, new Lsarpc.LsarObjectAttributes(), access, policyHandle)
		{
			ObjectAttributes.Length = 24;
			Lsarpc.LsarQosInfo qos = new Lsarpc.LsarQosInfo();
			qos.Length = 12;
			qos.ImpersonationLevel = 2;
			qos.ContextMode = 1;
			qos.EffectiveOnly = 0;
			ObjectAttributes.SecurityQualityOfService = qos;
			Ptype = 0;
            Flags = DcerpcConstants.DcerpcFirstFrag | DcerpcConstants.DcerpcLastFrag;
		}
Example #2
0
 public MsrpcLsarOpenPolicy2(string server, int access, LsaPolicyHandle policyHandle
                             ) : base(server, new Lsarpc.LsarObjectAttributes(), access, policyHandle)
 {
     ObjectAttributes.Length = 24;
     Lsarpc.LsarQosInfo qos = new Lsarpc.LsarQosInfo();
     qos.Length             = 12;
     qos.ImpersonationLevel = 2;
     qos.ContextMode        = 1;
     qos.EffectiveOnly      = 0;
     ObjectAttributes.SecurityQualityOfService = qos;
     Ptype = 0;
     Flags = DcerpcConstants.DcerpcFirstFrag | DcerpcConstants.DcerpcLastFrag;
 }