ResGet()

Auto Hotkey

ResGet

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

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

Parameters

OutputVar

The name of the variable in which to store the size of read data.

Data (ByRef)

ByRef variable in which to store read data.

Executable

Path to the executable file (dll or exe).

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

ResGet(data,A_AhkPath,"RESGET.AHK","LIB")
UnZipRawMemory(&data;,var)
MsgBox % StrGet(&var;,"UTF-8")