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
using System; | |
using System.Runtime.InteropServices; | |
using System.Security; | |
using System.Security.Principal; | |
using Windows.Security.Cryptography.Certificates; | |
[StructLayout(LayoutKind.Sequential)] | |
unsafe readonly ref struct WTS_PROCESS_INFO | |
{ | |
internal readonly int SessionId, ProcessId; |
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
#define INITGUID | |
#define COBJMACROS | |
#define WIDL_C_INLINE_WRAPPERS | |
#include <windows.h> | |
#include <MinHook.h> | |
#include <d3d11.h> | |
#include <winrt/base.h> | |
#include <winrt/Windows.UI.Core.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
using namespace System | |
using namespace Windows.Foundation | |
using namespace Windows.Globalization | |
using namespace System.Threading.Tasks | |
using namespace System.Web.Script.Serialization | |
using namespace Windows.ApplicationModel.Store.LicenseManagement | |
$Preference = $ProgressPreference | |
$ProgressPreference = 'SilentlyContinue' |
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
#define INITGUID | |
#define COBJMACROS | |
#define _MINAPPMODEL_H_ | |
#define WIDL_C_INLINE_WRAPPERS | |
#include <aclapi.h> | |
#include <shlwapi.h> | |
#include <userenv.h> | |
#include <appmodel.h> | |
#include <shobjidl.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
using System; | |
using System.Collections.Generic; | |
static class Bubble | |
{ | |
internal static void Sort(int[] value) | |
{ | |
int[] collection = new int[value.Length]; | |
value.CopyTo(collection, default); |
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
#define _MINAPPMODEL_H_ | |
#include <windows.h> | |
#include <appmodel.h> | |
#include <threadpoollegacyapiset.h> | |
#include <shlobj.h> | |
#include <shlwapi.h> | |
#include <userenv.h> | |
#include <sddl.h> | |
#include <stdio.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
#include <filesystem> | |
#include <initguid.h> | |
#include <windows.h> | |
#include <shobjidl.h> | |
#include <winrt/Windows.ApplicationModel.h> | |
#include <winrt/Windows.System.h> | |
#include <winrt/Windows.Foundation.Collections.h> | |
#include <winrt/Windows.Management.Core.h> | |
#include <winrt/Windows.Storage.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
template <typename T> class Object | |
{ | |
private: | |
com_ptr<T> Unknown; | |
public: | |
Object(guid const &value) | |
{ | |
if (FAILED(CoGetContextToken(nullptr))) | |
init_apartment(); |
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
#define _MINAPPMODEL_H_ | |
#include <windows.h> | |
#include <appmodel.h> | |
#include <tlhelp32.h> | |
#include <stdio.h> | |
VOID AppPolicyPrintClrCompat(HANDLE hToken) | |
{ | |
PCSTR pBuffer = {}; | |
AppPolicyClrCompat _ = {}; |
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
http://blogs.msdn.com/b/windowsappdev/archive/2012/09/04/automating-the-testing-of-windows-8-apps.aspx |