Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17560

Injecting entry point in current process

$
0
0

What: I want to hijack the current process' startup procedure to run pre-initialization startup code, which would allow my framework backend to function without any setup by the programmer. 

Why: I want to initialize my application shell backend (including any managers) before the program enters but after statics are initialized.

What's the problem: Well, there's two….

1) Identifying the actual entry point. I'm currently focusing solely on Windows, but even here I have multiple possible entry points to handle. Most importantly, WinMainA() and WinMainW(), but also main(), wmain(), etc. I'm not a sure what would …


Viewing all articles
Browse latest Browse all 17560

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>