while reading the answers to Can I statically link (not import) the Windows system DLLs? I came up with another question. So:
- Is there a way to write a program that has no dependencies (nothing is statically compiled too - it has only my code) and everything is resolved during run-time assuming that
kernel32.dll
will be loaded/mapped into the process no matter what? - Is my assumption about
kernel32.dll
correct?
During run-time, I mean using the PEB
structure.
kernel32.dll
only apply to the NT platform. Not that I expect anyone to still use 9x/Me, but just in case ;)