18 #ifndef INCLUDED_LOADERTHUNKS 19 #define INCLUDED_LOADERTHUNKS 25 return (0 < ret && ret <= 100);
35 : this_(this__),
func(func_) {}
38 template<
class T>
static int MemFunThunk(std::shared_ptr<void> param,
double UNUSED(time_left))
45 const wchar_t* description,
int estimated_duration_ms)
62 : this_(this__), func(func_), arg(arg_) {}
65 template<
class T,
class Arg>
static int MemFun1Thunk(std::shared_ptr<void> param,
double UNUSED(time_left))
71 template<
class T,
class Arg>
void RegMemFun1(
T* this_,
int(
T::*func)(Arg), Arg arg,
72 const wchar_t* description,
int estimated_duration_ms)
77 #endif // INCLUDED_LOADERTHUNKS Definition: LoaderThunks.h:54
#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:58
Definition: LoaderThunks.h:28
int(T::* func)(void)
Definition: LoaderThunks.h:33
Arg arg
Definition: LoaderThunks.h:59
int(T::* func)(Arg)
Definition: LoaderThunks.h:60
static int MemFun1Thunk(std::shared_ptr< void > param, double time_left)
Definition: LoaderThunks.h:65
void LDR_Register(LoadFunc func, std::shared_ptr< void > param, const wchar_t *description, int estimated_duration_ms)
Definition: Loader.cpp:106
MemFun1_t(T *this__, int(T::*func_)(Arg), Arg arg_)
Definition: LoaderThunks.h:61
static int MemFunThunk(std::shared_ptr< void > param, double time_left)
Definition: LoaderThunks.h:38
#define T(string_literal)
Definition: secure_crt.cpp:77
T *const this_
Definition: LoaderThunks.h:32
static bool ldr_was_interrupted(int ret)
Definition: LoaderThunks.h:23
MemFun_t(T *this__, int(T::*func_)(void))
Definition: LoaderThunks.h:34
void RegMemFun1(T *this_, int(T::*func)(Arg), Arg arg, const wchar_t *description, int estimated_duration_ms)
Definition: LoaderThunks.h:71
void RegMemFun(T *this_, int(T::*func)(void), const wchar_t *description, int estimated_duration_ms)
Definition: LoaderThunks.h:44