MemorySizeOfResource()

Auto Hotkey

MemorySizeOfResource

Find out the size of resource in the specified dll previously loaded with MemoryLoadLibrary. Similar to SizeOfResource.

OutputVar := MemorySizeOfResource(Handle, hResource)
Function Example: sz := MemorySizeOfResource(ahkdllModule,hResource)

Parameters

OutputVar

The name of the variable in which to store the function pointer.

Handle

MemoryModule handle prevously returned by MemoryLoadLibrary.

hResource

Resource handle previously returned by MemoryFindResource

Related

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

Examples

ahk:=MemoryLoadLibrary(A_AhkDir "\AutoHotkey.dll")
hRes:=MemoryFindResource(ahk,"TYPELIB",1)
MsgBox % MemorySizeOfResource(ahk,hRes)