Skip to content

Instantly share code, notes, and snippets.

@Aetopia
Aetopia / Program.c
Created September 18, 2025 09:37
Alternative bootstrapper for Minecraft Preview's PC Bootstrapper.
#define INITGUID
#define COBJMACROS
#define _MINAPPMODEL_H_
#define WIDL_C_INLINE_WRAPPERS
#include <windows.h>
#include <shobjidl.h>
#include <appmodel.h>
#include <shlwapi.h>
#include <string>
#include <vector>
#include <format>
#include <initguid.h>
#include <windows.h>
#include <setupapi.h>
#include <devguid.h>
#include <devpkey.h>
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Serialization.Json;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Xml;
using System.Xml.Linq;
namespace System.Runtime.Serialization.Json.Linq;
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics]
"CaptionFont"=hex:f4,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,\
00,00,00,01,00,00,05,00,53,00,65,00,67,00,6f,00,65,00,20,00,55,00,49,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
"IconFont"=hex:f4,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,00,\
00,00,01,00,00,05,00,53,00,65,00,67,00,6f,00,65,00,20,00,55,00,49,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
@Aetopia
Aetopia / Loader.c
Last active May 18, 2025 06:38
An experimental function to inject multiple dynamic link libraries using QueueUserAPC() & CreateRemoteThread().
#include "Igneous.h"
HRESULT WINAPI Loader_Launch(Game *This, PDWORD Value, PCWSTR *Paths, DWORD Count)
{
// Launch the game.
HRESULT hResult = Game_Launch(This, Value);
// Only proceed if the game succesfully launched.
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}");