This function is used to unzip and decrypt raw memory, for example from resource.
OutputVar := UnZipRawMemory(AddressOrBufferObject, Size, VariableName, Password)Function Example: sz := UnZipRawMemory(&resource, ressize, var)
The name of the variable in which to store the creted Buffer object containing unzipped memory.
Buffer object or pointer/address to raw zipped memory.
Size in bytes of zipped memory. Not required if AddressOrBuffer is Buffer Object
The name of a variable or address to copy unzipped memory to.
The password to use to decrypt the data.
Ahk2Exe uses ZipRawMemory to compress and encrypt resources in raw mode (only 1 file/string/buffer is supported).
Internally AutoHotkey is able to decompress raw resources automatically (compiled script, AutoHotkey.dll, WinApi + lib resources).
This function can be used in script to decrypt and decompress raw resources.
ZipRawMemory, ZipCreateFile, ZipAddFile, ZipCloseFile, ZipOptions, UnZip, ZipCreateBuffer, ZipAddBuffer, ZipCloseBuffer, UnZipBuffer, ZipInfo, ZipAddFolder
sz:=ResGet(MyBuffer, A_AhkPath,"AHKEXEC.AHK","LIB") UnZipRawMemory(&MyBuffer,sz, data) MsgBox % StrGet(&data, "UTF-8")