Updates a resource in executable file (dll or exe).
OutputVar := ResPut(Data, Size, Executable, Name , Type, Language)Command Example: ResPut Data,data.size, A_ScriptDir "\MyDll.dll", "MYRESOURCE" Function Example: Success := ResPut(Data, data.size, A_ScriptDir "\MyDll.dll", "MYRESOURCE")
The name of the variable in which to store true / 1 if resource was written and false / 0 otherwise.
ByRef variable or a pointer to data to be written.
Size of data to be written in bytes.
Path to the executable file (dll or exe).
The name of resource.
Type of resource. Default is RCDATA (10).
See MSDN for default resource types.
The language of resource, default 1033.
If you wish to compress or encrypt your data you can use ZipFileRaw.
ResGet, ResPutFile, ResExist, ResDelete, ResDllCreate, UnZipRawMemory
ResPut(FileRead(A_ScriptDir "\MYRES.RES", "RAW"), FileGetSize(A_ScriptDir "\MYRES.RES"), A_ScriptDir "\MyProgram.exe", "MYRES.RES")