[New Utility]Mouse Without Borders

* Integrate Mouse Without Borders into PowerToys

---------

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
This commit is contained in:
Andrey Nekrasov
2023-05-15 23:32:26 +01:00
committed by Jaime Bernardo
parent a0b9af039d
commit 29eebe16a4
304 changed files with 37234 additions and 133 deletions

View File

@@ -0,0 +1,10 @@
#pragma once
#include <string>
// Isolate this function for the magic strings it has.
inline std::wstring generateSecurityDescriptor(std::wstring Sid) {
std::wstring securityDescriptor = L"D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)(A;;CR;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)(A;;RPWPDTLO;;;";
securityDescriptor += Sid;
securityDescriptor += L")S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)";
return securityDescriptor;
}