implement FatalExitHook()

Maarten Lankhorst m.b.lankhorst at
Sat Oct 27 20:10:25 CDT 2007

EA Durbin schreef:
> ----------------------------------------> Date: Sun, 28 Oct 2007 01:13:54 +0200> From: m.b.lankhorst at> To: ead1234 at> CC: wine-devel at> Subject: Re: implement FatalExitHook()>> Hi EA,>> I can find absolutely no info on FatalExitHook, are you sure it's> supposed to exit the process, rather then making the argument be called> in case of exit?>> Cheers,> Maarten.
> I couldn't find much info on it either, except it's a stub in the krn386.exe.   Age of empires 2 throws up an unimplimented function krn386.exe.FatalExitHook error after it crashes due to bug 9925, and this makes that error go away. I'm not sure if it's correct due to the lack of documentation for this function.
The easiest way to figure it out, is by creating a small test program..

Something along the lines of:

void CALLBACK trigger(int test)
printf("Triggered: %d\n");

int main()
printf("Still alive..\n");
return 1;


More information about the wine-devel mailing list