1 /* 2 * COPYRIGHT: See COPYING in the top level directory 3 * PROJECT: ReactOS HTTP Daemon 4 * FILE: include/thread.h 5 */ 6 #ifndef __THREAD_H 7 #define __THREAD_H 8 9 #include <windows.h> 10 11 class CThread; 12 13 struct ThreadData { 14 CThread *ClassPtr; 15 HANDLE hFinished; 16 }; 17 18 class CThread { 19 public: 20 CThread(); 21 virtual ~CThread(); 22 BOOL PostMessage(UINT Msg, WPARAM wParam, LPARAM lParam); 23 virtual void Execute(); 24 virtual void Terminate(); 25 BOOL Terminated(); 26 protected: 27 BOOL bTerminated; 28 DWORD dwThreadId; 29 HANDLE hThread; 30 ThreadData Data; 31 }; 32 typedef CThread *LPCThread; 33 34 #endif /* __THREAD_H */ 35