inject: Major refactoring

This addresses one major issue and multiple minor ones:
Major:
Inject's debugger is not attached to the process before
injecting DLL files. This misses out on OutputDebugString
calls by anything logging in the DllMain functions of the hook
dlls.

Minor:
- Fix coloring of log entries
- Add ASCII header to easily determine start
- Fix file logging, log _everything_ to a single log file
- Enhance inject's debugger: log further debug events to incrase
visibility on issues, proper exception handling for inject
- Re-iterated code structure of inject
This commit is contained in:
icex2
2020-09-02 19:53:06 +00:00
parent de894ae5ce
commit 54b321c7d9
9 changed files with 1093 additions and 419 deletions
+4
View File
@@ -2,10 +2,14 @@ exes += inject
ldflags_inject := \
-mconsole \
-lpsapi \
libs_inject := \
util \
src_inject := \
debugger.c \
logger.c \
main.c \
options.c \
version.c \