Loads a DLL into memory.
Contents |
int wb_load_library (string libname)
libname - fully qualified or raw name.
Returns an integer identifying libname. If libname is NULL then returns the identifier of the last library returned. TReturns NULL if no library was found.
The function appends some characters to the library name until it finds the library, then it returns an identifier for that library, or NULL if the library was not found. If libname is "LIB", for example, the function looks for the following files, in order:
For each name, the function looks in the following locations:
// Returns the number of seconds elapsed since the computer started.
function get_ticks()
{
static $KERNEL = null;
static $GetTickCount = null;
if($KERNEL === null)
$KERNEL = wb_load_library("KERNEL");
if($GetTickCount === null)
$GetTickCount = wb_get_function_address("GetTickCount", $KERNEL);
return (int)(wb_call_function($GetTickCount) / 1000);
}