From 09eb5df77d2db0693db4f8c2d4f6f96c0b7eb32e Mon Sep 17 00:00:00 2001 From: segfault Date: Sat, 19 Dec 2020 19:27:05 +0100 Subject: PingThread calls function on timeout. --- include/KInterface.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/KInterface.h') diff --git a/include/KInterface.h b/include/KInterface.h index 981ae35..19c9268 100644 --- a/include/KInterface.h +++ b/include/KInterface.h @@ -101,11 +101,11 @@ public: UINT32 getLastNtStatus(); SendRecvReturn RecvWait(DWORD timeout = DEFAULT_TIMEOUT_MS); - void StartPingThread(void); + void StartPingThread(void (__cdecl *onTimeout)(void)); private: SendRecvReturn SendRecvWait(UINT32 type, DWORD timeout = DEFAULT_TIMEOUT_MS); - void PingThread(void); + void PingThread(void (__cdecl *onTimeout)(void)); PVOID m_shmem = NULL; HANDLE m_kevent = NULL, m_uevent = NULL; -- cgit v1.2.3