2004-06-13 18:05:38 +02:00
|
|
|
struct DllLoadNotify;
|
|
|
|
|
|
|
|
extern void wdll_add_notify(DllLoadNotify*);
|
|
|
|
|
|
|
|
struct DllLoadNotify
|
|
|
|
{
|
|
|
|
const char* dll_name;
|
|
|
|
int(*func)(void);
|
|
|
|
DllLoadNotify* next;
|
|
|
|
|
|
|
|
DllLoadNotify(const char* _dll_name, int(*_func)(void))
|
|
|
|
{
|
|
|
|
dll_name = _dll_name;
|
|
|
|
func = _func;
|
|
|
|
wdll_add_notify(this);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
#define WDLL_LOAD_NOTIFY(dll_name, func)\
|
2004-06-22 15:22:46 +02:00
|
|
|
static DllLoadNotify func##_NOTIFY(dll_name, func)
|