mirror of
https://github.com/decompals/wibo.git
synced 2025-12-14 15:46:11 +00:00
3fd1f6a30c53d932d13be57a6bc793aa217d4929
WiBo
An experiment to try and write a minimal, low-fuss wrapper that can run really simple command-line 32-bit Windows binaries on Linux - with less faff and less dependencies than WINE.
Don't run this on any untrusted executables, I implore you. (Or probably just don't run it at all... :p)
g++ -g -m32 -std=c++20 -lstdc++ main.cpp version.cpp user32.cpp kernel32.cpp advapi32.cpp loader.cpp
If you need something like this project (but more mature), you might find taviso/loadlibrary more interesting.
Rough to-do list:
- Implement more APIs
- Do something intelligent with Windows
HANDLEs - Pass the command line properly
- Convert paths in environment variables (and the structure of
PATHitself, maybe) to Windows format - Implement PE relocations rather than just failing unceremoniously
- Make the PE loader work for DLLs as well in case we ever want to load some
Languages
C++
73.3%
C
17.9%
Python
4.7%
CMake
2.8%
Assembly
1.1%
Other
0.2%