/*********************************************************************** $Id: ini.c 1215 2008-09-13 06:54:03Z jbs $ Ini view/edit applet Copyright (c) 1993-98 M. Kimes Copyright (c) 2008 Steven H.Levine 05 Jan 08 SHL Sync ***********************************************************************/ #define INCL_DOS #define INCL_WIN #include "dll\fm3dll.h" #include "dll\notebook.h" // Data declaration(s) #include "dll\init.h" // InitFM3DLL #include "dll\inis.h" // StartIniEditor int main(int argc, char *argv[]) { HAB hab; HMQ hmq; QMSG qmsg; HWND hwndFrame; DosError(FERR_DISABLEHARDERR); hab = WinInitialize(0); if (hab) { hmq = WinCreateMsgQueue(hab, 512); if (hmq) { if (InitFM3DLL(hab, argc, argv) && ((hwndFrame = StartIniEditor(HWND_DESKTOP, argv[1], 0)) != (HWND) 0)) { if (hwndHelp) WinAssociateHelpInstance(hwndHelp, hwndFrame); while (WinGetMsg(hab, &qmsg, (HWND) 0, 0, 0)) WinDispatchMsg(hab, &qmsg); } DosSleep(125L); WinDestroyMsgQueue(hmq); } WinTerminate(hab); } return 0; }