PowerToys/tools/HandlesExperiment/FileLocksmithLib/IPC.h

23 lines
325 B
C
Raw Normal View History

2022-09-13 19:45:07 +08:00
#pragma once
#include "pch.h"
namespace ipc
{
class Writer
{
public:
Writer();
2022-09-14 00:20:07 +08:00
~Writer();
2022-09-13 19:45:07 +08:00
HRESULT start();
HRESULT add_path(LPCWSTR path);
void finish();
HANDLE get_read_handle();
private:
HANDLE m_read_pipe = NULL;
HANDLE m_write_pipe = NULL;
};
std::vector<std::wstring> read_paths_from_stdin();
}