Код:
$tReg = DllStructCreate("int;int Data;int Width;int Height;int")
$tBin = DllStructCreate("byte["& DllStructGetSize($tReg) &"]", DllStructGetPtr($tReg))
DllStructSetData($tReg, "Data" , 24)
DllStructSetData($tReg, "Width" , @DesktopWidth)
DllStructSetData($tReg, "Height", @DesktopHeight-52)
RegWrite("HKCU\Software\PowerISO", "MainWindow", "REG_BINARY", DllStructGetData($tBin,1))