Skip to content

Instantly share code, notes, and snippets.

View twist84's full-sized avatar
☠️
Finding buried treasure

Twister twist84

☠️
Finding buried treasure
View GitHub Profile
@twist84
twist84 / source\tls_client.cpp
Last active April 13, 2023 12:46 — forked from mmozeiko/tls_client.c
simple example of TLS socket client using win32 schannel api
#include "tls_client.hpp"
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <winsock2.h>
#define SECURITY_WIN32
#include <security.h>
#include <schannel.h>
#include <shlwapi.h>
#include <assert.h>
#include "LoadingScreen.hpp"
#include "../Patch.hpp"
#include "../ElDorito.hpp"
#include "../Blam/BlamTypes.hpp"
#include "../Console.hpp"
using namespace Patches::LoadingScreen;
namespace
@twist84
twist84 / _README.md
Created January 2, 2018 08:12 — forked from shaunlebron/_README.md
Direct3D9 Wrapper DLL

In response to a StackOverflow question:

This is code to build a Direct3D wrapper DLL, intercepting all calls to Direct3D interface functions so that you can draw your own objects to display over the game. Just plop the DLL into the same folder as the game's executable, and it should load it as if it were the real d3d9.dll file. It still forwards all calls to the real one in system32, just allows stuff to happen in between. original stackoverflow answer

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using TagTool.Cache;
using TagTool.Serialization;
using TagTool.TagDefinitions;
using TagTool.TagGroups;
using static TagTool.Commands.ArgumentParser;