Changeset 1341 for trunk/sysinfo.c
- Timestamp:
- Dec 14, 2008, 11:18:26 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sysinfo.c
r1216 r1341 10 10 11 11 05 Jan 08 SHL Sync 12 14 Dec 08 SHL Add exception handler support 12 13 13 14 ***********************************************************************/ 14 15 15 #define INCL_DOS16 16 #define INCL_WIN 17 #define INCL_DOSEXCEPTIONS // XCTP_... 18 #define INCL_DOSERRORS // NO_ERROR 17 19 18 20 #include "dll\fm3dll.h" 19 #include "dll\mainwnd.h" // Data declaration(s)21 #include "dll\mainwnd.h" // FM3ModHandle 20 22 #include "dll\fm3dlg.h" 21 #include "dll\init.h" // InitFM3DLL 22 #include "dll\sysinfo.h" // SysInfoDlgProc 23 #include "dll\init.h" // InitFM3DLL 24 #include "dll\sysinfo.h" // SysInfoDlgProc 25 #include "dll\errutil.h" // Error reporting 26 #include "dll\excputil.h" // Exception handlers 27 28 static PSZ pszSrcFile = __FILE__; 23 29 24 30 int main(int argc, char *argv[]) … … 26 32 HAB hab; 27 33 HMQ hmq; 34 APIRET regRet; 35 EXCEPTIONREGISTRATIONRECORD regRec = { NULL, NULL }; 36 37 regRec.ExceptionHandler = HandleException; 38 regRet = DosSetExceptionHandler(®Rec); 39 if (regRet != NO_ERROR) { 40 DbgMsg(pszSrcFile, __LINE__, 41 "DosSetExceptionHandler failed with error %u", regRet); 42 } 28 43 29 44 hab = WinInitialize(0); … … 32 47 if (hmq) { 33 48 if (InitFM3DLL(hab, argc, argv)) { 34 35 49 WinDlgBox(HWND_DESKTOP, HWND_DESKTOP, 50 SysInfoDlgProc, FM3ModHandle, SYS_FRAME, NULL); 36 51 } 37 52 WinDestroyMsgQueue(hmq);
Note:
See TracChangeset
for help on using the changeset viewer.