Gentee Programming Language > Documentation > Libraries Download documentation

call

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
)

Parameters

addressThe address of the calling function.
flagsCalling flags.
0x000100Calling cdecl fucntion
0x001000There is a return value - uint
paramsParameters for the calling function.

Return value

The value to was returned by the calling function.

See also

    Other functions


 Copyright © 2004-2006 Gentee Inc. All rights reserved.