source: trunk/databar.c@ 1036

Last change on this file since 1036 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: 1.2 KB
Line 
1
2/***********************************************************************
3
4 $Id: databar.c 907 2008-01-06 07:26:17Z stevenhl $
5
6 databar applet
7
8 Copyright (c) 1993-98 M. Kimes
9 Copyright (c) 2005 Steven H. Levine
10
11 Oct 15 21:42:56 2002 967 ______ databar.c
12
13 15 Oct 02 SHL Baseline
14 07 Dec 05 SHL Avoid warnings
15
16***********************************************************************/
17
18#include <string.h>
19
20#define INCL_DOS
21#define INCL_WIN
22#define INCL_LONGLONG
23
24#include "dll\datamin.h"
25#include "dll\fm3dlg.h"
26#include "dll\fm3dll.h"
27
28#ifdef NEVER // 05 Jan 08 SHL fixme to be gone?
29
30VOID APIENTRY deinit(ULONG why)
31{
32 if (fmprof)
33 PrfCloseProfile(fmprof);
34 fmprof = (HINI) 0;
35
36 flushall();
37
38 DosExitList(EXLST_REMOVE, deinit);
39}
40
41#endif
42
43int main(int argc, char *argv[])
44{
45 HAB hab;
46 HMQ hmq;
47 QMSG qmsg;
48
49 strcpy(appname, "DATABAR");
50
51# ifdef NEVER
52 DosExitList(EXLST_ADD, deinit);
53# endif
54
55 hab = WinInitialize(0);
56 if (hab) {
57 hmq = WinCreateMsgQueue(hab, 384);
58 if (hmq) {
59 if (InitFM3DLL(hab, argc, argv)) {
60 if (CreateDataBar(HWND_DESKTOP, 0)) {
61 while (WinGetMsg(hab, &qmsg, (HWND) 0, 0, 0))
62 WinDispatchMsg(hab, &qmsg);
63 }
64 }
65 WinDestroyMsgQueue(hmq);
66 }
67 WinTerminate(hab);
68 }
69 return 0;
70}
Note: See TracBrowser for help on using the repository browser.