LRESULT FreeLibrary(HANDLE Handle);
Le résultat est inutile.
#include <windows.h>
#include <winbase.h>
HANDLE Handle;
void (*Procedure)(void);
...
Handle=LoadLibrary("/tmp/essai.dll");
if (!Handle)
{
...
}
...
Procedure=(void (*)(void))GetProcAddress(Handle, "MaProcedure");
if (!Procedure)
{
...
}
...
(*Procedure)();
...
FreeLibrary(Handle);
...