edk2toollib/windows/policy/firmware_policy.py
def SetDevicePolicy(self, policy: int):
        """Adds a Rule for the 64-bit policy value bitfield.
        The "key" is a well-known constant assigned in the body of this method
        The "value" of the 64-bit bitfield is passed via the "policy" parameter
        """
        policyVT = PolicyValueType(Type=PolicyValueType.POLICY_VALUE_TYPE_QWORD)
        SubKeyName = PolicyString(String=self.FW_POLICY_SUB_KEY_NAME)
        ValueName = PolicyString(String=self.FW_POLICY_VALUE_NAME)
        Value = PolicyValue(valueType=policyVT, value=policy)
        rule = Rule(RootKey=self.FW_POLICY_ROOT_KEY,
                    SubKeyName=SubKeyName,
                    ValueName=ValueName, Value=Value)
        self.AddRule(rule)
Adds a Rule for the 64-bit policy value bitfield.
        The "key" is a well-known constant assigned in the body of this method
        The "value" of the 64-bit bitfield is passed via the "policy" parameter
        
Adds a Rule for the 64-bit policy value bitfield.
Adds a Rule for the 64 - bit policy value bitfield .
def SetDevicePolicy(self, policy: int):
        policyVT = PolicyValueType(Type=PolicyValueType.POLICY_VALUE_TYPE_QWORD)
        SubKeyName = PolicyString(String=self.FW_POLICY_SUB_KEY_NAME)
        ValueName = PolicyString(String=self.FW_POLICY_VALUE_NAME)
        Value = PolicyValue(valueType=policyVT, value=policy)
        rule = Rule(RootKey=self.FW_POLICY_ROOT_KEY,
                    SubKeyName=SubKeyName,
                    ValueName=ValueName, Value=Value)
        self.AddRule(rule)
def SetDevicePolicy ( self , policy : int ) : policyVT = PolicyValueType ( Type = PolicyValueType . POLICY_VALUE_TYPE_QWORD ) SubKeyName = PolicyString ( String = self . FW_POLICY_SUB_KEY_NAME ) ValueName = PolicyString ( String = self . FW_POLICY_VALUE_NAME ) Value = PolicyValue ( valueType = policyVT , value = policy ) rule = Rule ( RootKey = self . FW_POLICY_ROOT_KEY , SubKeyName = SubKeyName , ValueName = ValueName , Value = Value ) self . AddRule ( rule )
Adds a Rule for the 64-bit policy value bitfield.
Adds a Rule for the 64 - bit policy value bitfield .
"""Adds a Rule for the 64-bit policy value bitfield.
        The "key" is a well-known constant assigned in the body of this method
        The "value" of the 64-bit bitfield is passed via the "policy" parameter
        """
self
policy
int