Re: Executable PE Import table missing ExitProcess?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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.
.



Relevant Pages

  • Re: Reading entire file into an array..HELP!
    ... MegaC wrote: ... > I am having a heck of a time trying to read input from a file. ... The program will exit if the file cannot be opened. ... contain the reason the open failed. ...
    (perl.beginners)
  • updating to a different table
    ... in a form -- on exit of a certain field how would you ... update fields from a separate table? ... SQL and ADO is confusing the heck ...
    (microsoft.public.access.formscoding)
  • Re: Drivers Too Comfortable,, means harder bump drafting.
    ... exit. ... Heck, pick any V8 model you like, right off the showroom ... floor, on street radials, and it'll go faster than 160 thru the ... corners at Daytona. ...
    (rec.autos.sport.nascar)
  • Ok computer dudes and ladies I need xp serv pack 1
    ... in order to run vpinmame on two monitors without it crashing on exit. ... So where the heck do I find a copy of XP sp1 install disc? ...
    (alt.games.mame)
  • Re: exit status
    ... Arndt Jonasson wrote: ... blush, it seemed easy with the exitcall. ... Sure as heck seems to me like you just said exit() doesn't work. ...
    (comp.lang.perl.misc)