source: trunk/dll/init.h@ 1856

Last change on this file since 1856 was 1856, checked in by Steven Levine, 10 years ago

Rework Flesh/Stubby etc. to avoid running on thread 1
Should be ready for release after spurious traps resolved
DbgMsg calls retained - delete/disable before release

  • Property svn:eolstyle set to native
  • Property svn:keywords set to Id
File size: 8.6 KB
Line 
1
2/***********************************************************************
3
4 $Id: init.h 1856 2015-08-18 17:12:52Z stevenhl $
5
6 Initialization
7
8 Copyright (c) 1993-98 M. Kimes
9 Copyright (c) 2008, 2015 Steven H. Levine
10
11 Change log
12 29 Nov 08 GKY Remove or replace with a mutex semaphore DosEnterCriSec where appropriate.
13 03 Jan 09 GKY Check for system that is protectonly to gray out Dos/Win command lines and prevent
14 Dos/Win programs from being inserted into the execute dialog with message why.
15 11 Jan 09 GKY Move strings that shouldn't be translated (font names etc) compile time variables
16 07 Feb 09 GKY Eliminate Win_Error2 by moving function names to PCSZs used in Win_Error
17 07 Feb 09 GKY Move repeated strings to PCSZs.
18 07 Feb 09 GKY Add *DateFormat functions to format dates based on locale
19 08 Mar 09 GKY Additional strings move to PCSZs in init.c
20 22 Jul 09 GKY Drivebar enhancements add refresh removable, rescan all drives, drive button
21 loads drive root directory in directory container or expands drive tree
22 and rescans drive in tree container depending on container focus, greyed out
23 inappropriate menu context choices
24 15 Nov 09 GKY Add more PCSZs
25 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10).
26 Mostly cast CHAR CONSTANT * as CHAR *.
27 20 Nov 10 GKY Rework scanning code to remove redundant scans, prevent double directory
28 entries in the tree container, fix related semaphore performance using
29 combination of event and mutex semaphores
30 08 Jan 12 GKY Add support for changing PresParams in the notify status window
31 04 Aug 12 GKY Changes to use Unlock to unlock files if Unlock.exe is in path both from menu/toolbar and as part of
32 copy, move and delete operations
33 04 Aug 12 GKY Changes to allow copy and move over readonly files with a warning dialog; also added a warning dialog
34 for delete of readonly files
35 16 Feb 14 GKY Add "#" command line switch to workaround problem with blank command shell
36 started from fm2 after fm2 has been started with stdout and stderr
37 redirected to a file.
38 02 Mar 14 GKY Fixed typo that reversed the function of the saymsg dialog g/bzip check.
39 Added option to suppress message regarding missing bzip2.exe
40 or gzip.exe on TAR.B/GZ archives.
41 30 Aug 14 GKY Add semaphore hmtxFiltering to prevent freeing dcd while filtering. Prevents
42 a trap when FM2 is shutdown while directory containers are still populating
43 02 Aug 15 GKY Serialize local hard drive scanning to reduce drive thrashing continue to scan
44 all other drive types in separate threads.
45
46***********************************************************************/
47
48#if !defined(INIT_H)
49#define INIT_H
50
51BOOL InitFM3DLL(HAB hab, int argc, char **argv);
52HWND StartFM3(HAB hab, INT argc, CHAR ** argv);
53
54// Data declarations
55extern PCSZ PCSZ_ARCHIVERBB2;
56extern PCSZ PCSZ_ASSOCDAT;
57extern PCSZ PCSZ_CMDLINESDAT;
58extern PCSZ PCSZ_CMDMINIDAT;
59extern PCSZ PCSZ_COMMANDSDAT;
60extern PCSZ PCSZ_FILTERSDAT;
61extern PCSZ PCSZ_GREPMASKDAT;
62extern PCSZ PCSZ_PATTERNSDAT;
63extern PCSZ PCSZ_RESOURCEDAT;
64extern PCSZ PCSZ_QUICKTLSDAT;
65extern PCSZ PCSZ_FM3TOOLSDAT;
66extern PCSZ PCSZ_USERDIRSDAT;
67extern PCSZ PCSZ_FM2PLAYEXE;
68extern PCSZ PCSZ_FM2PLAYTEMP;
69extern PCSZ PCSZ_LVMGUICMD;
70extern PCSZ PCSZ_DFSOS2EXE;
71extern PCSZ PCSZ_MINILVMEXE;
72extern PCSZ PCSZ_FDISKPMEXE;
73extern PCSZ PCSZ_IMAGEEXE;
74extern PCSZ PCSZ_LVMEXE;
75extern PCSZ PCSZ_UNLOCKEXE;
76extern PCSZ PCSZ_ARCCNR;
77extern PCSZ PCSZ_COLLECTOR;
78extern PCSZ PCSZ_DIRCNR;
79extern PCSZ PCSZ_DIRCMP;
80extern PCSZ PCSZ_DIRSIZES;
81extern PCSZ PCSZ_NOTIFYWND;
82extern PCSZ PCSZ_TOOLBAR;
83extern PCSZ PCSZ_TREECNR;
84extern PCSZ PCSZ_SHUTDOWNSTATE;
85extern PCSZ PCSZ_FM2TEMPTEXT;
86extern PCSZ DRMDRFFM2ARC;
87extern PCSZ DRF_FM2ARCHIVE;
88extern PCSZ DRMDRFOS2FILE;
89extern PCSZ DRM_FM2ARCMEMBER;
90extern PCSZ DRM_OS2FILE;
91extern PCSZ FM2Str;
92extern PCSZ FM3Folder;
93extern CHAR HomePath[CCHMAXPATH];
94extern PCSZ LONGNAME;
95extern CHAR *NullStr;
96extern ULONG OS2ver[2];
97extern PFNWP PFNWPCnr;
98extern PFNWP PFNWPMLE;
99extern PCSZ Settings;
100extern PCSZ Details;
101extern PCSZ PCSZ_TREE;
102extern PCSZ PCSZ_ICON;
103extern CHAR SwapperDat[CCHMAXPATH];
104extern CHAR ThousandsSeparator[2];
105extern CHAR DateSeparator[2];
106extern CHAR TimeSeparator[2];
107extern ULONG ulTimeFmt;
108extern ULONG ulDateFmt;
109extern PCSZ FNT_HELVETICA;
110extern PCSZ FNT_6HELVETICA;
111extern PCSZ FNT_8HELVETICA;
112extern PCSZ FNT_8HELVETICABOLD;
113extern PCSZ FNT_10SYSTEMMONOTEXT;
114extern PCSZ FNT_10SYSTEMPROPORT;
115extern PCSZ FNT_2SYSTEMVIO;
116extern PCSZ FNT_4SYSTEMVIO;
117extern PCSZ FNT_10SYSTEMVIO;
118extern PCSZ FNT_8TIMESNEWROMAN;
119extern PCSZ PCSZ_CM_ALLOCRECORD;
120extern PCSZ PCSZ_QUERYCNRINFO;
121extern PCSZ PCSZ_DOSCREATEMUTEXSEM;
122extern PCSZ PCSZ_DOSCREATEEVENTSEM;
123extern PCSZ PCSZ_DOSDUPHANDLE;
124extern PCSZ PCSZ_DOSGETINFOBLOCKS;
125extern PCSZ PCSZ_DOSQUERYPATHINFO;
126extern PCSZ PCSZ_DOSSEARCHPATH;
127extern PCSZ PCSZ_DRGACCESSDRAGINFO;
128extern PCSZ PCSZ_POSTMSG;
129extern PCSZ PCSZ_WINCREATEWINDOW;
130extern PCSZ PCSZ_WINLOADACCELTABLE;
131extern PCSZ PCSZ_WINSETACCELTABLE;
132extern PCSZ PCSZ_INIQUERYPRFTEXT;
133extern PCSZ PCSZ_PRFOPENPROFILEFAILED;
134extern PCSZ PCSZ_PRFQUERYPROFILEDATA;
135extern PCSZ PCSZ_PRFQUERYPROFILESIZE;
136extern PCSZ PCSZ_PRFQUERYPROFILESTRING;
137extern PCSZ PCSZ_FILLDIRQCURERRTEXT;
138extern PCSZ PCSZ_NODATA;
139extern PCSZ PCSZ_BACKSLASH;
140extern PCSZ PCSZ_STARDOTEXE;
141extern PCSZ PCSZ_STARDOTINI;
142extern PCSZ PCSZ_STARDOTLST;
143extern PCSZ PCSZ_STARDOTPMD;
144extern PCSZ PCSZ_STARDOTTXT;
145extern PCSZ PCSZ_FM3DOTINI;
146extern PCSZ PCSZ_FM3INI;
147extern PCSZ PCSZ_FM3INIDOTBAK;
148extern PCSZ PCSZ_FM3INIDOTBAD;
149extern PCSZ PCSZ_FM3INIDOTBAD2;
150extern PCSZ PCSZ_FM3RES;
151extern PCSZ PCSZ_FM3DOTHLP;
152extern PCSZ PCSZ_DOTEXE;
153extern PCSZ PCSZ_DOTCOM;
154extern PCSZ PCSZ_DOTCMD;
155extern PCSZ PCSZ_DOTBTM;
156extern PCSZ PCSZ_DOTBAT;
157extern PCSZ PCSZ_DOTLST;
158extern PCSZ PCSZ_DOTTLS;
159extern PCSZ PCSZ_DOTHLP;
160extern PCSZ PCSZ_DOTINF;
161extern PCSZ PCSZ_DOTMP3;
162extern PCSZ PCSZ_DOTMPG;
163extern PCSZ PCSZ_DOTMPEG;
164extern PCSZ PCSZ_DOTOGG;
165extern PCSZ PCSZ_DOTFLAC;
166extern PCSZ PCSZ_DOTJPEG;
167extern PCSZ PCSZ_DOTJPG;
168extern PCSZ PCSZ_DOTICO;
169extern PCSZ PCSZ_DOTPTR;
170extern PCSZ PCSZ_DOTBB2;
171extern PCSZ PCSZ_DOTBMP;
172extern PCSZ PCSZ_DOTCOMMENTS;
173extern PCSZ PCSZ_PATH;
174extern PCSZ PCSZ_LIBPATH;
175extern PCSZ PCSZ_WPURLDEFAULTSETTINGS;
176extern PCSZ WC_ARCCONTAINER;
177extern PCSZ WC_ARCSTATUS;
178extern PCSZ WC_AUTOVIEW;
179extern PCSZ WC_BUBBLE;
180extern PCSZ WC_COLLECTOR;
181extern PCSZ WC_COLSTATUS;
182extern PCSZ WC_DATABAR;
183extern PCSZ WC_DIRCONTAINER;
184extern PCSZ WC_DIRSTATUS;
185extern PCSZ WC_DRIVEBACK;
186extern PCSZ WC_DRIVEBUTTONS;
187extern PCSZ WC_ERRORWND;
188extern PCSZ WC_INIEDITOR;
189extern PCSZ WC_LED;
190extern PCSZ WC_MAINWND;
191extern PCSZ WC_MAINWND2;
192extern PCSZ WC_MINITIME;
193extern PCSZ WC_MLEEDITOR;
194extern PCSZ WC_NEWVIEW;
195extern PCSZ WC_OBJECTWINDOW;
196extern PCSZ WC_SEEALL;
197extern PCSZ WC_SEESTATUS;
198extern PCSZ WC_STATUS;
199extern PCSZ WC_TOOLBACK;
200extern PCSZ WC_TOOLBUTTONS;
201extern PCSZ WC_TREECONTAINER;
202extern PCSZ WC_TREEOPENBUTTON;
203extern PCSZ WC_TREESTATUS;
204extern PCSZ WC_VIEWSTATUS;
205extern BOOL fDontSuggestAgain;
206extern BOOL fInitialDriveScan;
207extern BOOL fAmAV2;
208extern BOOL fChangeTarget;
209extern BOOL fIniExisted;
210extern BOOL fLogFile;
211extern BOOL fProtectOnly;
212extern BOOL fReminimize;
213extern BOOL fWantFirstTimeInit;
214extern BOOL fUseShellEnv;
215extern BOOL fDontAskBzip;
216extern BOOL fDontAskGzip;
217extern HPOINTER hptrApp;
218extern HPOINTER hptrArc;
219extern HPOINTER hptrArrow;
220extern HPOINTER hptrArt;
221extern HPOINTER hptrBusy;
222extern HPOINTER hptrCDROM;
223extern HPOINTER hptrDrive;
224extern HPOINTER hptrEW;
225extern HPOINTER hptrFloppy;
226extern HPOINTER hptrNS;
227extern HPOINTER hptrRamdisk;
228extern HPOINTER hptrRemote;
229extern HPOINTER hptrRemovable;
230extern HPOINTER hptrVirtual;
231extern HPOINTER hptrZipstrm;
232extern CHAR *pFM2SaveDirectory;
233extern CHAR *pTmpDir;
234extern CHAR profile[CCHMAXPATH];
235extern CHAR *pLibPathStrict;
236extern ULONGLONG ullTmpSpaceNeeded;
237#ifdef INCL_DOSSEMAPHORES
238extern HMTX hmtxFM2Globals;
239extern HMTX hmtxFM2Delete;
240
241#if 0 // 2015-08-07 SHL FIXME to be gone
242extern HMTX hmtxScanning;
243#endif // 2015-08-07 SHL FIXME to be gone
244
245#if 0 // 2015-08-07 SHL FIXME to be gone
246extern HMTX hmtxScanningLocalHD;
247#endif // 2015-08-07 SHL FIXME to be gone
248
249extern HMTX hmtxFiltering;
250
251#if 0 // 2015-08-04 SHL FIXME to be gone
252extern HEV hevTreeCnrScanComplete;
253#endif // 2015-08-04 SHL FIXME to be gone
254
255#endif
256
257#endif // INIT_H
Note: See TracBrowser for help on using the repository browser.