This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <windows.ui.composition.interop.h> | |
| #include <ShellScalingAPI.h> | |
| #include <DispatcherQueue.h> | |
| #include <winrt/Windows.System.h> | |
| #include <winrt/Windows.UI.Composition.Desktop.h> | |
| extern "C" IMAGE_DOS_HEADER __ImageBase; | |
| using namespace winrt; | |
| using namespace Windows::UI; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #pragma comment(lib, "onecore") | |
| #pragma comment(lib, "propsys") | |
| #include <shlobj.h> | |
| #include <propvarutil.h> | |
| #include <propkey.h> | |
| #include <notificationactivationcallback.h> | |
| #include <winrt/Windows.UI.Notifications.h> | |
| #include <winrt/Windows.Data.Xml.Dom.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "io" | |
| "log" | |
| "net" | |
| "os" | |
| "os/signal" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "bytes" | |
| "fmt" | |
| "os/exec" | |
| "time" | |
| ) | |
| func run(timeout int, command string, args ...string) string { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace bamthread | |
| { | |
| typedef std::unique_ptr<boost::asio::io_service::work> asio_worker; | |
| // the actual thread pool | |
| struct ThreadPool { | |
| ThreadPool(size_t threads) :service(), working(new asio_worker::element_type(service)) { | |
| for ( std::size_t i = 0; i < threads; ++i ) { | |
| auto worker = boost::bind(&boost::asio::io_service::run, &(this->service)); | |
| g.add_thread(new boost::thread(worker)); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .SYNOPSIS | |
| Gets a PowerShell Credential (PSCredential) from the Windows Credential Manager | |
| .DESCRIPTION | |
| This module will return a [PSCredential] object from a credential stored in Windows Credential Manager. The | |
| Get-StoredCredential function can only access Generic Credentials. | |
| Alias: GSC |