mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 11:16:51 +02:00
[FileLocksmith]Add Windows11 (tier1) context menu (#31388)
* Add project
* Cleanup project file and add resource file
* Move common logic to FileLocksmithLib
* Cleanup interop vcxproj
* Implement handler, add assets and appx manifest
* Revert "Cleanup interop vcxproj"
This reverts commit 97bf991f2e.
* Remove package on uninstall
Install package on enable
Fix launching app
Cleanup
* Revert non-related change
* Spellcheck
* Update src/modules/FileLocksmith/FileLocksmithContextMenu/Resources.resx
* Wire Show in extended context menu setting
This commit is contained in:
22
src/modules/FileLocksmith/FileLocksmithLib/IPC.h
Normal file
22
src/modules/FileLocksmith/FileLocksmithLib/IPC.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
#include "pch.h"
|
||||
|
||||
#include <fstream>
|
||||
|
||||
namespace ipc
|
||||
{
|
||||
class Writer
|
||||
{
|
||||
public:
|
||||
Writer();
|
||||
~Writer();
|
||||
HRESULT start();
|
||||
HRESULT add_path(LPCWSTR path);
|
||||
void finish();
|
||||
HANDLE get_read_handle();
|
||||
|
||||
private:
|
||||
std::ofstream m_stream;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user