Как активировать операционную систему 8 / 8.1
For most matrix applications, (compact, fast) or REG_SZ with JSON (human-readable, flexible) is preferred. 3. Encoding Matrices in the Registry 3.1 Binary Encoding (Fixed-Size Numeric Matrix) Store matrix dimensions (rows, cols) and element values in a single REG_BINARY value.
Each registry key represents a row, with values for columns.
Set-ItemProperty -Path $path -Name "MatrixBinary" -Value ([byte[]]$bytes) -Type Binary $readBytes = (Get-ItemProperty -Path $path -Name "MatrixBinary").MatrixBinary $rowsRead = [BitConverter]::ToInt32($readBytes, 0) $colsRead = [BitConverter]::ToInt32($readBytes, 4) $matrix = @() for ($i = 0; $i -lt $rowsRead * $colsRead; $i++) $offset = 8 + $i * 4 $matrix += [BitConverter]::ToSingle($readBytes, $offset)
Интернет-магазин электронных ключей активации и подписок для операционных систем и офисных приложений.
Средняя оценка -
4.9