mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 19:26:39 +02:00
Add new VideoConference module for muting mic/cam (#11798)
* add new VideoConference module for muting mic/cam Co-authored-by: PrzemyslawTusinski <61138537+PrzemyslawTusinski@users.noreply.github.com> Co-authored-by: Niels Laute <niels.laute@live.nl>
This commit is contained in:
19
src/modules/videoconference/VideoConferenceShared/naming.cpp
Normal file
19
src/modules/videoconference/VideoConferenceShared/naming.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#include "naming.h"
|
||||
|
||||
#include "username.h"
|
||||
|
||||
std::wstring ObtainStableGlobalNameForKernelObject(const std::wstring_view name, const bool restricted)
|
||||
{
|
||||
static const std::optional<std::wstring> username = ObtainActiveUserName();
|
||||
std::wstring result = L"Global\\";
|
||||
if (restricted)
|
||||
{
|
||||
result += L"Restricted\\";
|
||||
}
|
||||
if (username)
|
||||
{
|
||||
result += *username;
|
||||
}
|
||||
result += name;
|
||||
return result;
|
||||
}
|
||||
Reference in New Issue
Block a user