enderalse/SKSE/Plugins/fs_skse_plugin_functions/common/IPipeServer.h
2021-10-06 02:45:46 +02:00

26 lines
342 B
C++

#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;
};