Initial MSVC 2008 projects workspace

This commit is contained in:
alexey.min
2012-02-01 05:25:08 +00:00
commit 03de3bdc95
1446 changed files with 476853 additions and 0 deletions

34
l2detect/LoginListener.h Normal file
View File

@@ -0,0 +1,34 @@
#ifndef FAKELOGINLISTENER_H_
#define FAKELOGINLISTENER_H_
// signals to thread
#define FLLS_STOP 1
class LoginListener
{
friend void FLS_Thread_freeInfo( struct FLLT_INFO *pinfo );
protected:
static DWORD WINAPI FLS_Thread( LPVOID lpParam );
public:
LoginListener();
virtual ~LoginListener();
public:
bool start();
void signal( unsigned int code ) { this->m_signal = code; }
void signalStop() { this->signal( FLLS_STOP ); }
bool waitStopped( unsigned int timeoutMsec );
unsigned int getLastSignal() const { return this->m_signal; }
void setLastSignal( unsigned int code ) { this->m_signal = code; }
void terminateThread();
public:
bool isRunning() const;
protected:
void _initNull();
protected:
HANDLE m_hThread;
unsigned int m_signal;
// thread resources
SOCKET m_listen_socket;
};
#endif /*FAKELOGINLISTENER_H_*/