/***************************************************************************
 *                                                                         *
 *   EXCPHAND.H                                                            *
 *                                                                         *
 *   Copyright (c) 1996 Galacticomm, Inc.    All Rights Reserved.          *
 *                                                                         *
 *   Exception handler & exception report for NT version.                  *
 *                                                                         *
 *                                      - Ilya Minkin 01/30/96             *
 *                                                                         *
 ***************************************************************************/

#ifndef __EXCPHAND_H
#define __EXCPHAND_H

#include <windows.h>

#define GCEXCEPTION_CATASTRO   0x60000001
#define GCEXCEPTION_ASSERT     0x60000002

LONG                               //   exit/continue/serch next handler
excpFilter(                        // handle exception and print report
EXCEPTION_POINTERS *excpPtrs);     //   ptr to exception info

//	remove MFC exception defs, if any
#if defined( TRY )
#  undef TRY
#endif
#if defined( CATCH )
#  undef CATCH
#endif
#if defined( END_CATCH )
#  undef END_CATCH
#endif

#define TRY __try {
#define EXCEPT } __except (excpFilter(GetExceptionInformation())) {}

#endif                             // __EXCPHAND_H
