mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-15 20:19:17 +08:00
63d989cab4
* Deprecate ATL based IPC wrapper library * C# projects now use named pipe server implementations from two_way_pipe_message through the interop C++/Cli library. * Added Unit testing to interop library
18 lines
461 B
C++
18 lines
461 B
C++
#pragma once
|
|
class TwoWayPipeMessageIPC
|
|
{
|
|
public:
|
|
typedef void (*callback_function)(const std::wstring&);
|
|
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();
|
|
|
|
private:
|
|
class TwoWayPipeMessageIPCImpl;
|
|
TwoWayPipeMessageIPCImpl* impl;
|
|
}; |