| Gentee Programming Language > Documentation > Libraries | Download documentation |
This function allows you to call functions by their address. For instance, you can use it for dynamicaly loading DLL.
str name
uint lib = LoadLibrary( "kernel32.dll".ptr())
name.reserve( 512 )
call( GetProcAddress( lib, "GetModuleFileNameA".ptr()), 0x1000,
%{ GetModuleHandle(), name.ptr(), 512 } )
name.setlenptr()
print( "\(name)")
uint call( uint address, uint flags, collection params )
address The address of the calling function. flags Calling flags. 0x000100 Calling cdecl fucntion 0x001000 There is a return value - uint params Parameters for the calling function.
The value to was returned by the calling function.
See alsoCopyright © 2004-2006 Gentee Inc. All rights reserved. |