This commit is contained in:
test123456654321 2024-10-26 10:48:21 +08:00
parent 5ff84d2c2a
commit 943f098682

View File

@ -16,8 +16,8 @@ BOOL APIENTRY DllMain(HMODULE hModule,
}
typedef void (*ProcessEvent)(DWORD);
typedef void (*ThreadEvent)(const wchar_t *, const char *, ThreadParam, bool);
typedef void (*ThreadEvent_2)(const wchar_t *, const char *, ThreadParam);
typedef void (*ThreadEvent_maybe_embed)(const wchar_t *, const char *, ThreadParam, bool);
typedef void (*ThreadEvent)(const wchar_t *, const char *, ThreadParam);
typedef bool (*OutputCallback)(const wchar_t *, const char *, ThreadParam, const wchar_t *);
typedef void (*ConsoleHandler)(const wchar_t *);
typedef void (*HookInsertHandler)(uint64_t, const wchar_t *);
@ -29,7 +29,7 @@ std::optional<T> checkoption(bool check, T &&t)
return std::move(t);
return {};
}
C_LUNA_API void Luna_Start(ProcessEvent Connect, ProcessEvent Disconnect, ThreadEvent Create, ThreadEvent_2 Destroy, OutputCallback Output, ConsoleHandler console, HookInsertHandler hookinsert, EmbedCallback embed, ConsoleHandler Warning)
C_LUNA_API void Luna_Start(ProcessEvent Connect, ProcessEvent Disconnect, ThreadEvent_maybe_embed Create, ThreadEvent Destroy, OutputCallback Output, ConsoleHandler console, HookInsertHandler hookinsert, EmbedCallback embed, ConsoleHandler Warning)
{
Host::StartEx(
checkoption(Connect, std::function<void(DWORD)>(Connect)),