ResGet

Reads a resource from executable file (dll or exe).

OutputVar := ResGet(Executable, Name , Type, Language)
Function Example: Size := ResGet(Data, A_AhkPath, "MYRESOURCE")

Parameters

OutputVar

The name of the variable in which to store the Buffer object containing the read data.

Executable

Path to the executable file (dll, exe or bin).

Name

The name of resource.

Type (optional)

Type of resource. Default is RCDATA (10).
See MSDN for default resource types.

Language (optional)

The language of resource.

Remarks

If resource data is compressed or encrypted you can use UnZipRawMemory to decrypt and unzip it.

Related

ResPut, ResPutFile ResExist, ResDelete, ResDllCreate, UnZipRawMemory

Example

data:=ResGet(A_AhkPath,"RESGET.AHK","LIB")
var:=UnZipRawMemory(data)
MsgBox StrGet(var,"UTF-8")