EA Durbin schreef: > ----------------------------------------> Date: Sun, 28 Oct 2007 01:13:54 > +0200> From: [EMAIL PROTECTED]> To: [EMAIL PROTECTED]> CC: > wine-devel@winehq.org> 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() { FatalExitHook(&trigger); printf("Still alive..\n"); FatalExit(0); printf("Alive?!\n"); return 1; } Regards, Maarten.