Coder Social home page Coder Social logo

deadash / xp-compatiblerust Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 72 KB

Introducing a powerful solution that converts any non-XP-compatible 32-bit exe or dll into a Windows XP-friendly binary. Our patch files are exceptionally small and easy to generate, making it incredibly straightforward to extend your software's support to the XP ecosystem.

Batchfile 1.19% Rust 13.85% Makefile 0.99% C 81.03% PowerShell 2.95%
rust windows windowsxp xp

xp-compatiblerust's Introduction

MakeXPStub: Make Your PE Executables XP-Compatible

Introduction

MakeXPStub is a utility designed to make your PE (Portable Executable) files compatible with Windows XP. This is particularly useful for executables compiled with Rust, which may not natively support Windows XP. The tool operates by modifying the Import Address Table (IAT) of the target executable to forward incompatible API calls to xpstub.dll. This DLL contains implementations that make these APIs compatible with Windows XP. The underlying implementation for these thunks is sourced from YY-Thunks.

Features

  • Modify PE Files: Automatically update the IAT to make your executables XP-compatible.
  • DLL Forwarding: Forwards incompatible API calls to xpstub.dll.
  • Built for Rust: Tailored for executables compiled with Rust but can be used for any PE file.
  • Minimal Footprint: Generates minimal patches that can be easily distributed.

Prerequisites

  • Rust Toolchain
  • Windows SDK
  • NMake (For building xpstub.dll)

Compilation

To compile the project, you need to execute two commands:

  1. Build the native components with the batch script:

    .\Build.ps1 build
  2. Then build the Rust components:

    cargo build --release

Usage

After the compilation steps, you can use the makexpstub.exe command-line utility to convert your executables. Here's the basic syntax:

makexpstub.exe --input a.exe --output a-xp.exe

This will read a.exe, modify its IAT, and produce a-xp.exe which will be compatible with Windows XP.

Contributing

We welcome contributions and bug reporting. Feel free to open an issue or submit a pull request.

Acknowledgements

A big thank you to the YY-Thunks project for providing the essential API implementations that made this project possible.

License

This project is licensed under MIT License.

For more details, please refer to the LICENSE file in the repository.

xp-compatiblerust's People

Contributors

deadash avatar edsky avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

xp-compatiblerust's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.