mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11763 e03df62e-2008-0410-955e-edbf42e46eb7
36 lines
497 B
C++
36 lines
497 B
C++
#ifndef INSPIRCD_NAMEDPIPE
|
|
#define INSPIRCD_NAMEDPIPE
|
|
|
|
#include "threadengine.h"
|
|
#include <windows.h>
|
|
|
|
class IPCThread : public Thread
|
|
{
|
|
BOOL Connected;
|
|
DWORD BytesRead;
|
|
BOOL Success;
|
|
HANDLE Pipe;
|
|
char status[MAXBUF];
|
|
int result;
|
|
public:
|
|
IPCThread();
|
|
virtual ~IPCThread();
|
|
virtual void Run();
|
|
const char GetStatus();
|
|
int GetResult();
|
|
void ClearStatus();
|
|
void SetResult(int newresult);
|
|
};
|
|
|
|
class IPC
|
|
{
|
|
private:
|
|
IPCThread* thread;
|
|
public:
|
|
IPC();
|
|
void Check();
|
|
~IPC();
|
|
};
|
|
|
|
#endif
|