source: trunk/dll/init.h@ 1838

Last change on this file since 1838 was 1838, checked in by Gregg Young, 10 years ago

Serialize local hard drive scanning to reduce drive thrashing continue to scan all other drive types in separate threads. Ticket [561] Remove unneed SubbyScan code and improve suppression of blank lines and duplicate subdirectory name caused by running Stubby in worker threads.

  • Property svn:eolstyle set to native
  • Property svn:keywords set to Id
File size: 8.4 KB
Line 
1
2/***********************************************************************
3
4 $Id: init.h 1838 2015-08-02 22:14:21Z gyoung $
5
6 <<<description here>>>
7
8 Copyright (c) 1993-98 M. Kimes
9 Copyright (c) 2008-10 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 ULONG ulScanPostCnt;
110extern PCSZ FNT_HELVETICA;
111extern PCSZ FNT_6HELVETICA;
112extern PCSZ FNT_8HELVETICA;
113extern PCSZ FNT_8HELVETICABOLD;
114extern PCSZ FNT_10SYSTEMMONOTEXT;
115extern PCSZ FNT_10SYSTEMPROPORT;
116extern PCSZ FNT_2SYSTEMVIO;
117extern PCSZ FNT_4SYSTEMVIO;
118extern PCSZ FNT_10SYSTEMVIO;
119extern PCSZ FNT_8TIMESNEWROMAN;
120extern PCSZ PCSZ_CM_ALLOCRECORD;
121extern PCSZ PCSZ_QUERYCNRINFO;
122extern PCSZ PCSZ_DOSCREATEMUTEXSEM;
123extern PCSZ PCSZ_DOSCREATEEVENTSEM;
124extern PCSZ PCSZ_DOSDUPHANDLE;
125extern PCSZ PCSZ_DOSGETINFOBLOCKS;
126extern PCSZ PCSZ_DOSQUERYPATHINFO;
127extern PCSZ PCSZ_DOSSEARCHPATH;
128extern PCSZ PCSZ_DRGACCESSDRAGINFO;
129extern PCSZ PCSZ_POSTMSG;
130extern PCSZ PCSZ_WINCREATEWINDOW;
131extern PCSZ PCSZ_WINLOADACCELTABLE;
132extern PCSZ PCSZ_WINSETACCELTABLE;
133extern PCSZ PCSZ_INIQUERYPRFTEXT;
134extern PCSZ PCSZ_PRFOPENPROFILEFAILED;
135extern PCSZ PCSZ_PRFQUERYPROFILEDATA;
136extern PCSZ PCSZ_PRFQUERYPROFILESIZE;
137extern PCSZ PCSZ_PRFQUERYPROFILESTRING;
138extern PCSZ PCSZ_FILLDIRQCURERRTEXT;
139extern PCSZ PCSZ_NODATA;
140extern PCSZ PCSZ_BACKSLASH;
141extern PCSZ PCSZ_STARDOTEXE;
142extern PCSZ PCSZ_STARDOTINI;
143extern PCSZ PCSZ_STARDOTLST;
144extern PCSZ PCSZ_STARDOTPMD;
145extern PCSZ PCSZ_STARDOTTXT;
146extern PCSZ PCSZ_FM3DOTINI;
147extern PCSZ PCSZ_FM3INI;
148extern PCSZ PCSZ_FM3INIDOTBAK;
149extern PCSZ PCSZ_FM3INIDOTBAD;
150extern PCSZ PCSZ_FM3INIDOTBAD2;
151extern PCSZ PCSZ_FM3RES;
152extern PCSZ PCSZ_FM3DOTHLP;
153extern PCSZ PCSZ_DOTEXE;
154extern PCSZ PCSZ_DOTCOM;
155extern PCSZ PCSZ_DOTCMD;
156extern PCSZ PCSZ_DOTBTM;
157extern PCSZ PCSZ_DOTBAT;
158extern PCSZ PCSZ_DOTLST;
159extern PCSZ PCSZ_DOTTLS;
160extern PCSZ PCSZ_DOTHLP;
161extern PCSZ PCSZ_DOTINF;
162extern PCSZ PCSZ_DOTMP3;
163extern PCSZ PCSZ_DOTMPG;
164extern PCSZ PCSZ_DOTMPEG;
165extern PCSZ PCSZ_DOTOGG;
166extern PCSZ PCSZ_DOTFLAC;
167extern PCSZ PCSZ_DOTJPEG;
168extern PCSZ PCSZ_DOTJPG;
169extern PCSZ PCSZ_DOTICO;
170extern PCSZ PCSZ_DOTPTR;
171extern PCSZ PCSZ_DOTBB2;
172extern PCSZ PCSZ_DOTBMP;
173extern PCSZ PCSZ_DOTCOMMENTS;
174extern PCSZ PCSZ_PATH;
175extern PCSZ PCSZ_LIBPATH;
176extern PCSZ PCSZ_WPURLDEFAULTSETTINGS;
177extern PCSZ WC_ARCCONTAINER;
178extern PCSZ WC_ARCSTATUS;
179extern PCSZ WC_AUTOVIEW;
180extern PCSZ WC_BUBBLE;
181extern PCSZ WC_COLLECTOR;
182extern PCSZ WC_COLSTATUS;
183extern PCSZ WC_DATABAR;
184extern PCSZ WC_DIRCONTAINER;
185extern PCSZ WC_DIRSTATUS;
186extern PCSZ WC_DRIVEBACK;
187extern PCSZ WC_DRIVEBUTTONS;
188extern PCSZ WC_ERRORWND;
189extern PCSZ WC_INIEDITOR;
190extern PCSZ WC_LED;
191extern PCSZ WC_MAINWND;
192extern PCSZ WC_MAINWND2;
193extern PCSZ WC_MINITIME;
194extern PCSZ WC_MLEEDITOR;
195extern PCSZ WC_NEWVIEW;
196extern PCSZ WC_OBJECTWINDOW;
197extern PCSZ WC_SEEALL;
198extern PCSZ WC_SEESTATUS;
199extern PCSZ WC_STATUS;
200extern PCSZ WC_TOOLBACK;
201extern PCSZ WC_TOOLBUTTONS;
202extern PCSZ WC_TREECONTAINER;
203extern PCSZ WC_TREEOPENBUTTON;
204extern PCSZ WC_TREESTATUS;
205extern PCSZ WC_VIEWSTATUS;
206extern BOOL fDontSuggestAgain;
207extern BOOL fInitialDriveScan;
208extern BOOL fAmAV2;
209extern BOOL fChangeTarget;
210extern BOOL fIniExisted;
211extern BOOL fLogFile;
212extern BOOL fProtectOnly;
213extern BOOL fReminimize;
214extern BOOL fWantFirstTimeInit;
215extern BOOL fUseShellEnv;
216extern BOOL fDontAskBzip;
217extern BOOL fDontAskGzip;
218extern HPOINTER hptrApp;
219extern HPOINTER hptrArc;
220extern HPOINTER hptrArrow;
221extern HPOINTER hptrArt;
222extern HPOINTER hptrBusy;
223extern HPOINTER hptrCDROM;
224extern HPOINTER hptrDrive;
225extern HPOINTER hptrEW;
226extern HPOINTER hptrFloppy;
227extern HPOINTER hptrNS;
228extern HPOINTER hptrRamdisk;
229extern HPOINTER hptrRemote;
230extern HPOINTER hptrRemovable;
231extern HPOINTER hptrVirtual;
232extern HPOINTER hptrZipstrm;
233extern CHAR *pFM2SaveDirectory;
234extern CHAR *pTmpDir;
235extern CHAR profile[CCHMAXPATH];
236extern CHAR *pLibPathStrict;
237extern ULONGLONG ullTmpSpaceNeeded;
238#ifdef INCL_DOSSEMAPHORES
239extern HMTX hmtxFM2Globals;
240extern HMTX hmtxFM2Delete;
241extern HMTX hmtxScanning;
242extern HMTX hmtxScanningLocalHD;
243extern HMTX hmtxScanningLocal;
244extern HMTX hmtxFiltering;
245extern HEV hevTreeCnrScanComplete;
246#endif
247
248#endif // INIT_H
Note: See TracBrowser for help on using the repository browser.