diff --git a/texthook/hookman.h b/texthook/hookman.h index f2b1241..8b8dbfd 100644 --- a/texthook/hookman.h +++ b/texthook/hookman.h @@ -19,8 +19,8 @@ struct ProcessRecord HANDLE hostPipe; }; -typedef void(*ProcessEventCallback)(DWORD pid); -typedef void(*ThreadEventCallback)(TextThread*); +typedef void(__stdcall *ProcessEventCallback)(DWORD pid); +typedef void(__stdcall *ThreadEventCallback)(TextThread*); struct ThreadParameterHasher { diff --git a/texthook/textthread.h b/texthook/textthread.h index be7857e..321096f 100644 --- a/texthook/textthread.h +++ b/texthook/textthread.h @@ -25,7 +25,7 @@ struct ThreadParameter #define CURRENT_SELECT 0x1000 class TextThread; -typedef std::wstring(*ThreadOutputCallback)(TextThread*, std::wstring data); +typedef std::wstring(__stdcall *ThreadOutputCallback)(TextThread*, std::wstring data); //extern DWORD split_time,repeat_count,global_filter,cyclic_remove;