Skip to content

Instantly share code, notes, and snippets.

using System.Collections.Generic;
using System.Threading.Tasks;
using System.Net.Http;
using System.Runtime.Serialization.Json;
using System.Xml;
using System;
using System.Xml.Linq;
using Windows.Data.Json;
using System.Web.Script.Serialization;
using System.IO;
@Aetopia
Aetopia / Program.cs
Last active April 23, 2025 18:36
Process Enumerator
using System;
using System.Linq;
using System.Diagnostics;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using static Constants;
using static Native;
static class Constants
{
@Aetopia
Aetopia / Developer.cs
Last active April 18, 2025 18:24
Check for running UWP apps.
using System;
using System.Diagnostics;
static class Developer
{
internal static long Benchmark(string value, Action action)
{
Stopwatch stopwatch = new();
stopwatch.Start(); action(); stopwatch.Stop();
// Console.WriteLine($"{value}, {stopwatch.ElapsedTicks}");
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;
@Aetopia
Aetopia / Library.cpp
Created April 17, 2025 05:15
Check for any pre-existing hooks.
#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>
@Aetopia
Aetopia / Script.ps1
Last active March 30, 2025 17:56
Check if a machine has a license for Minecraft: Bedrock Edition.
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'
#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>
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);
@Aetopia
Aetopia / Game.Launch.Monitor.c
Created February 16, 2025 11:25
Attempts to monitor any launch of Minecraft: Bedrock Edition, latches & waits for the game to initailize.
#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>
@Aetopia
Aetopia / Game.cpp
Last active February 14, 2025 08:11
Launch & wait for Minecraft Bedrock Edition to initialize.
#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>