Re: Executable PE Import table missing ExitProcess?
- From: Jeroen Mostert <jmostert@xxxxxxxxx>
- Date: Wed, 28 Jan 2009 23:54:09 +0100
Bruce. wrote:
If I link against the DLL C runtime, why does ExitProcess disappear from the exe Import list for kernel32.dll? And if it's not in the import table, then how the heck does the program exit?Your question has been addressed elsewhere, but as an aside: a process does not need to import ExitProcess() to be able to exit cleanly. If you don't call it, it will be done from the OS when your last thread exits (for the same reason, you do not need to import ExitThread()).
--
J.
.
- Follow-Ups:
- References:
- Executable PE Import table missing ExitProcess?
- From: Bruce.
- Executable PE Import table missing ExitProcess?
- Prev by Date: Re: Executable PE Import table missing ExitProcess?
- Next by Date: Access Violation on detouring ReadFile and WriteFile APIs
- Previous by thread: Re: Executable PE Import table missing ExitProcess?
- Next by thread: Re: Executable PE Import table missing ExitProcess?
- Index(es):
Relevant Pages
|