Play-/Source/ThreadMsg.h
jpd002 e863d636b9 vi
git-svn-id: http://svn.purei.org/purei/trunk@183 b36208d7-6611-0410-8bec-b1987f11c4a2
2007-12-06 23:20:08 +00:00

32 lines
No EOL
492 B
C++

#ifndef _THREADMSG_H_
#define _THREADMSG_H_
#ifdef WIN32
#include <windows.h>
#endif
class CThreadMsg
{
public:
struct MESSAGE
{
unsigned int nMsg;
unsigned int nRetValue;
void* pParam;
};
CThreadMsg();
~CThreadMsg();
unsigned int SendMessage(unsigned int, void*);
bool GetMessage(MESSAGE*);
void FlushMessage(unsigned int);
bool IsMessagePending();
private:
#ifdef WIN32
HANDLE m_hEvent;
#endif
MESSAGE m_Msg;
bool m_nMessage;
};
#endif