MemoryLoadResource()

Auto Hotkey

MemoryLoadResource

Load a resource in the specified dll previously loaded with MemoryLoadLibrary. Similar to LoadResource.

OutputVar := MemoryLoadResource(Handle, hResource)
Function Example: DataPTR := MemoryLoadResource(ahkdllModule,hResource)

Parameters

OutputVar

The name of the variable in which to store the resource pointer. Note, we do not need to call LockResource function , MemoryLoadResource returns already the pointer to resource.

Handle

MemoryModule handle prevously returned by MemoryLoadLibrary.

hResource

Resource handle previously returned by MemoryFindResource

Related

MemoryModule, MemoryLoadLibrary, ResourceLoadLibrary, MemoryFreeLibrary, MemoryFindResource, MemorySizeofResource, MemoryLoadResource, MemoryLoadString, DllCall, DynaCall

Examples

ahk:=MemoryLoadLibrary(A_AhkDir "\AutoHotkey.dll")
hRes:=MemoryFindResource(ahk,"TYPELIB",1)
DataPTR := MemoryLoadResource(ahk,hRes)