18 #ifndef INCLUDED_LOADERTHUNKS
19 #define INCLUDED_LOADERTHUNKS
37 #pragma warning(disable: 4121)
44 return (0 < ret && ret <= 100);
67 template<
class T>
void RegMemFun(
T* this_,
int(
T::*func)(
void),
68 const wchar_t* description,
int estimated_duration_ms)
71 LDR_Register(MemFunThunk<T>, param, description, estimated_duration_ms);
86 : this_(this__), func(func_),
arg(arg_) {}
98 template<
class T,
class Arg>
void RegMemFun1(
T* this_,
int(
T::*func)(Arg), Arg arg,
99 const wchar_t* description,
int estimated_duration_ms)
102 LDR_Register(MemFun1Thunk<T, Arg>, param, description, estimated_duration_ms);
105 #endif // INCLUDED_LOADERTHUNKS
#define UNUSED(param)
mark a function parameter as unused and avoid the corresponding compiler warning. ...
MemFun1_t(T *this__, int(T::*func_)(Arg), Arg arg_)
static int MemFunThunk(void *param, double time_left)
#define T(string_literal)
static int MemFun1Thunk(void *param, double time_left)
static bool ldr_was_interrupted(int ret)
MemFun_t(T *this__, int(T::*func_)(void))
void RegMemFun1(T *this_, int(T::*func)(Arg), Arg arg, const wchar_t *description, int estimated_duration_ms)
void RegMemFun(T *this_, int(T::*func)(void), const wchar_t *description, int estimated_duration_ms)
void LDR_Register(LoadFunc func, void *param, const wchar_t *description, int estimated_duration_ms)