1 #ifndef __LOADFUNCS_H__
2 #define __LOADFUNCS_H__
10 typedef struct _FUNC_INFO {
15 #define DECL_FUNC_PTR(x) FP_##x p##x
16 #define MAKE_FUNC_INFO(x) { (void**) &p##x, #x }
17 #define END_FUNC_INFO { 0, 0 }
18 #define TYPEDEF_FUNC(ret, call, name, args) typedef ret (call *FP_##name) args
30 HINSTANCE* ph, // [out, optional] - DLL handle
31 int* pindex, // [out, optional] - index of last func loaded (-1 if none)
32 int cleanup, // cleanup function pointers and unload on error
33 int go_on, // continue loading even if some functions cannot be loaded
34 int silent // do not pop-up a system dialog if DLL cannot be loaded
41 #endif /* __LOADFUNCS_H__ */