2019-09-05 00:26:26 +08:00
|
|
|
#pragma once
|
2020-03-05 18:07:06 +08:00
|
|
|
class TwoWayPipeMessageIPC
|
|
|
|
{
|
2019-09-05 00:26:26 +08:00
|
|
|
public:
|
2020-03-05 18:07:06 +08:00
|
|
|
typedef void (*callback_function)(const std::wstring&);
|
2020-04-24 08:11:02 +08:00
|
|
|
TwoWayPipeMessageIPC(
|
|
|
|
std::wstring _input_pipe_name,
|
|
|
|
std::wstring _output_pipe_name,
|
|
|
|
callback_function p_func);
|
|
|
|
~TwoWayPipeMessageIPC();
|
|
|
|
void send(std::wstring msg);
|
|
|
|
void start(HANDLE _restricted_pipe_token);
|
|
|
|
void end();
|
2019-09-05 00:26:26 +08:00
|
|
|
|
|
|
|
private:
|
2020-04-24 08:11:02 +08:00
|
|
|
class TwoWayPipeMessageIPCImpl;
|
|
|
|
TwoWayPipeMessageIPCImpl* impl;
|
|
|
|
};
|