This function is used to unzip and decrypt raw memory, for example from resource.
OutputVar := UnZipRawMemory(AddressOrBufferObject, Size, Password)Function Example: MyBuffer := UnZipRawMemory(resourceBuffer)
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 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
MyBuffer:=ResGet(A_AhkPath,"AHKEXEC.AHK","LIB") data:=UnZipRawMemory(MyBuffer) MsgBox StrGet(data, "UTF-8")