Re: FreeLibrary()

new topic     » goto parent     » topic index » view thread      » older message » newer message
useless_ said...


FreeLibrary() seems to be a windose call, and it's equated to FreeModule in winbase.h. Seems to be equated to a few other terms also. But it's not made availale for us lowly mortals to call? How can we commoners, we dregs, access FreeLibrary in Eu?

Here's a simple wrapper for FreeLibrary:

include std/dll.e 
 
constant 
    KERNEL32 = open_dll( "kernel32.dll" ), 
    FREELIBRARY = define_c_func( KERNEL32, "FreeLibrary", { C_POINTER }, C_INT ) 
 
public function free_library( atom dll ) 
    return c_func( FREELIBRARY, { dll } ) 
end function 

This should work with dlls opened with open_dll(), as we simply return the value returned by LoadLibrary.

Matt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu