IsHardened verifies if harden object of type RegistryMultiValue is already hardened.
()
| 204 | // IsHardened verifies if harden object of type RegistryMultiValue is already |
| 205 | // hardened. |
| 206 | func (regMultiValue *RegistryMultiValue) IsHardened() (isHardened bool) { |
| 207 | var hardened = true |
| 208 | |
| 209 | for _, singleDWORD := range regMultiValue.ArraySingleDWORD { |
| 210 | if !singleDWORD.IsHardened() { |
| 211 | hardened = false |
| 212 | } |
| 213 | } |
| 214 | |
| 215 | for _, singleSZ := range regMultiValue.ArraySingleSZ { |
| 216 | if !singleSZ.IsHardened() { |
| 217 | hardened = false |
| 218 | } |
| 219 | } |
| 220 | |
| 221 | return hardened |
| 222 | } |
| 223 | |
| 224 | // Name returns the (short) name of the harden item. |
| 225 | func (regMultiValue *RegistryMultiValue) Name() string { |
nothing calls this directly
no test coverage detected