/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/modules/Workspaces/WorkspacesLib/IPCHelper.h
29 строк
927 B
Seraphima Zykova
[Workspaces] Handle admin windows repositioning. (#34965)
25 сен 2024, 12:13
Не верифицирован
25 сен 2024, 12:13
1e18e83
Код
Авторство
О чём код?
#pragma once #include <mutex> #include <common/interop/two_way_pipe_message_ipc.h> namespace IPCHelperStrings { static std::wstring LauncherUIPipeName(L"\\\\.\\pipe\\powertoys_workspaces_launcher_ui_"); static std::wstring UIPipeName(L"\\\\.\\pipe\\powertoys_workspaces_ui_"); static std::wstring LauncherArrangerPipeName(L"\\\\.\\pipe\\powertoys_workspaces_launcher_arranger_"); static std::wstring WindowArrangerPipeName(L"\\\\.\\pipe\\powertoys_workspaces_window_arranger_"); } class IPCHelper { public: IPCHelper(const std::wstring& currentPipeName, const std::wstring receiverPipeName, std::function<void(const std::wstring&)> messageCallback); ~IPCHelper(); void send(const std::wstring& message) const; private: void receive(const std::wstring& msg); std::unique_ptr<TwoWayPipeMessageIPC> ipc; std::mutex ipcMutex; std::function<void(const std::wstring&)> callback; };