4
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

25 lines
342 B

#pragma once
class IPipeServer
{
public:
struct MessageHeader
{
UInt32 type;
UInt32 length;
};
IPipeServer();
virtual ~IPipeServer();
bool Open(const char * name);
void Close(void);
bool WaitForClient(void);
bool ReadMessage(UInt8 * buf, UInt32 length);
bool WriteMessage(MessageHeader * msg);
private:
HANDLE m_pipe;
};