Last change
on this file since 907 was 907, checked in by Steven Levine, 18 years ago |
Avoid out of memory traps in Compare Directories
Rework Compare Directories progress display for 2 second update rate
Start refactoring to reduce dependence on fm3dll.h
Add timer services (IsITimerExpired etc.)
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
921 bytes
|
Rev | Line | |
---|
[907] | 1 |
|
---|
| 2 | /***********************************************************************
|
---|
| 3 |
|
---|
| 4 | $Id: ini.c 907 2008-01-06 07:26:17Z stevenhl $
|
---|
| 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"
|
---|
| 19 |
|
---|
[551] | 20 | int main(int argc, char *argv[])
|
---|
| 21 | {
|
---|
| 22 | HAB hab;
|
---|
| 23 | HMQ hmq;
|
---|
| 24 | QMSG qmsg;
|
---|
| 25 | HWND hwndFrame;
|
---|
[2] | 26 |
|
---|
| 27 | DosError(FERR_DISABLEHARDERR);
|
---|
| 28 | hab = WinInitialize(0);
|
---|
[551] | 29 | if (hab) {
|
---|
| 30 | hmq = WinCreateMsgQueue(hab, 512);
|
---|
| 31 | if (hmq) {
|
---|
| 32 | if (InitFM3DLL(hab, argc, argv) &&
|
---|
| 33 | ((hwndFrame =
|
---|
| 34 | StartIniEditor(HWND_DESKTOP, argv[1], 0)) != (HWND) 0)) {
|
---|
| 35 | if (hwndHelp)
|
---|
| 36 | WinAssociateHelpInstance(hwndHelp, hwndFrame);
|
---|
| 37 | while (WinGetMsg(hab, &qmsg, (HWND) 0, 0, 0))
|
---|
| 38 | WinDispatchMsg(hab, &qmsg);
|
---|
[2] | 39 | }
|
---|
| 40 | DosSleep(125L);
|
---|
| 41 | WinDestroyMsgQueue(hmq);
|
---|
| 42 | }
|
---|
| 43 | WinTerminate(hab);
|
---|
| 44 | }
|
---|
| 45 | return 0;
|
---|
| 46 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.