From 4aef775a6a31ec7a0493d76a598f850e2bcab212 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Sat, 21 Jul 2018 14:01:38 -0700 Subject: [PATCH] prepare for use with c++/cli --- texthook/hookman.h | 4 ++-- texthook/textthread.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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;