I tried to write a peloader. I first load the executable image and all it\'s dependent dlls(include kernel32.dll and ntdll.dll) into memory, process all import address table, re
In visual studio put in the project properties linker->input->Ignore All default libraries
to yes. Then in c++->Code Generation->Basic Runtime Check
to default (to avoid linking in __RTC_*
. Then in linker->Advanced->Entry Point
you specify an function in your project you want to be called when the program is started.
Build everything and you should have a program that isn't linked to any library, including the c-runtime.