Last change
on this file since 1176 was 1176, checked in by John Small, 17 years ago |
Ticket 187: Draft 2: Move remaining function declarations
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.0 KB
|
Rev | Line | |
---|
[907] | 1 |
|
---|
| 2 | /***********************************************************************
|
---|
| 3 |
|
---|
| 4 | $Id: ini.c 1176 2008-09-10 21:52:46Z 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 |
|
---|
[2] | 15 | #define INCL_DOS
|
---|
| 16 | #define INCL_WIN
|
---|
| 17 |
|
---|
| 18 | #include "dll\fm3dll.h"
|
---|
[1176] | 19 | #include "dll\init.h" // InitFM3DLL
|
---|
[1155] | 20 | #include "dll\inis.h" // StartIniEditor
|
---|
[2] | 21 |
|
---|
[551] | 22 | int main(int argc, char *argv[])
|
---|
| 23 | {
|
---|
| 24 | HAB hab;
|
---|
| 25 | HMQ hmq;
|
---|
| 26 | QMSG qmsg;
|
---|
| 27 | HWND hwndFrame;
|
---|
[2] | 28 |
|
---|
| 29 | DosError(FERR_DISABLEHARDERR);
|
---|
| 30 | hab = WinInitialize(0);
|
---|
[551] | 31 | if (hab) {
|
---|
| 32 | hmq = WinCreateMsgQueue(hab, 512);
|
---|
| 33 | if (hmq) {
|
---|
| 34 | if (InitFM3DLL(hab, argc, argv) &&
|
---|
[1155] | 35 | ((hwndFrame =
|
---|
| 36 | StartIniEditor(HWND_DESKTOP, argv[1], 0)) != (HWND) 0)) {
|
---|
| 37 | if (hwndHelp)
|
---|
| 38 | WinAssociateHelpInstance(hwndHelp, hwndFrame);
|
---|
| 39 | while (WinGetMsg(hab, &qmsg, (HWND) 0, 0, 0))
|
---|
| 40 | WinDispatchMsg(hab, &qmsg);
|
---|
[2] | 41 | }
|
---|
| 42 | DosSleep(125L);
|
---|
| 43 | WinDestroyMsgQueue(hmq);
|
---|
| 44 | }
|
---|
| 45 | WinTerminate(hab);
|
---|
| 46 | }
|
---|
| 47 | return 0;
|
---|
| 48 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.