18 #ifndef INCLUDED_LOADERTHUNKS 19 #define INCLUDED_LOADERTHUNKS 37 #pragma warning(disable: 4121) 44 return (0 < ret && ret <= 100);
54 : this_(this__),
func(func_) {}
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 Definition: LoaderThunks.h:78
#define UNUSED(param)
mark a function parameter as unused and avoid the corresponding compiler warning. ...
Definition: code_annotation.h:38
T *const this_
Definition: LoaderThunks.h:82
Definition: LoaderThunks.h:47
int(T::* func)(void)
Definition: LoaderThunks.h:52
Arg arg
Definition: LoaderThunks.h:83
int(T::* func)(Arg)
Definition: LoaderThunks.h:84
MemFun1_t(T *this__, int(T::*func_)(Arg), Arg arg_)
Definition: LoaderThunks.h:85
static int MemFunThunk(void *param, double time_left)
Definition: LoaderThunks.h:57
#define T(string_literal)
Definition: secure_crt.cpp:76
static int MemFun1Thunk(void *param, double time_left)
Definition: LoaderThunks.h:89
T *const this_
Definition: LoaderThunks.h:51
static bool ldr_was_interrupted(int ret)
Definition: LoaderThunks.h:42
MemFun_t(T *this__, int(T::*func_)(void))
Definition: LoaderThunks.h:53
void RegMemFun1(T *this_, int(T::*func)(Arg), Arg arg, const wchar_t *description, int estimated_duration_ms)
Definition: LoaderThunks.h:98
void RegMemFun(T *this_, int(T::*func)(void), const wchar_t *description, int estimated_duration_ms)
Definition: LoaderThunks.h:67
void LDR_Register(LoadFunc func, void *param, const wchar_t *description, int estimated_duration_ms)
Definition: Loader.cpp:118