source: trunk/ini.c@ 1155

Last change on this file since 1155 was 1155, checked in by John Small, 17 years ago

Ticket 187: Draft 1: Functions only

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1021 bytes
Line 
1
2/***********************************************************************
3
4 $Id: ini.c 1155 2008-09-05 21:38:38Z jbs $
5
6 Ini view/edit applet
7
8 Copyright (c) 1993-98 M. Kimes
9 Copyright (c) 2008 Steven H.Levine
10
11 05 Jan 08 SHL Sync
12
13***********************************************************************/
14
15#define INCL_DOS
16#define INCL_WIN
17
18#include "dll\fm3dll.h"
19#include "dll\inis.h" // StartIniEditor
20
21int main(int argc, char *argv[])
22{
23 HAB hab;
24 HMQ hmq;
25 QMSG qmsg;
26 HWND hwndFrame;
27
28 DosError(FERR_DISABLEHARDERR);
29 hab = WinInitialize(0);
30 if (hab) {
31 hmq = WinCreateMsgQueue(hab, 512);
32 if (hmq) {
33 if (InitFM3DLL(hab, argc, argv) &&
34 ((hwndFrame =
35 StartIniEditor(HWND_DESKTOP, argv[1], 0)) != (HWND) 0)) {
36 if (hwndHelp)
37 WinAssociateHelpInstance(hwndHelp, hwndFrame);
38 while (WinGetMsg(hab, &qmsg, (HWND) 0, 0, 0))
39 WinDispatchMsg(hab, &qmsg);
40 }
41 DosSleep(125L);
42 WinDestroyMsgQueue(hmq);
43 }
44 WinTerminate(hab);
45 }
46 return 0;
47}
Note: See TracBrowser for help on using the repository browser.