[1168] | 1 |
|
---|
| 2 | /***********************************************************************
|
---|
| 3 |
|
---|
[1197] | 4 | $Id: init.h 1479 2009-11-15 22:40:25Z gyoung $
|
---|
[1168] | 5 |
|
---|
[1197] | 6 | <<<description here>>>
|
---|
[1168] | 7 |
|
---|
[1197] | 8 | Copyright (c) 1993-98 M. Kimes
|
---|
| 9 | Copyright (c) 2008 Steven H. Levine
|
---|
[1168] | 10 |
|
---|
[1197] | 11 | Change log
|
---|
[1303] | 12 | 29 Nov 08 GKY Remove or replace with a mutex semaphore DosEnterCriSec where appropriate.
|
---|
[1375] | 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.
|
---|
[1391] | 15 | 11 Jan 09 GKY Move strings that shouldn't be translated (font names etc) compile time variables
|
---|
[1395] | 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
|
---|
[1400] | 19 | 08 Mar 09 GKY Additional strings move to PCSZs in init.c
|
---|
[1444] | 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
|
---|
[1479] | 24 | 15 Nov 09 GKY Add more PCSZs
|
---|
[1168] | 25 |
|
---|
| 26 | ***********************************************************************/
|
---|
| 27 |
|
---|
| 28 | #if !defined(INIT_H)
|
---|
| 29 | #define INIT_H
|
---|
| 30 |
|
---|
[1177] | 31 | BOOL InitFM3DLL(HAB hab, int argc, char **argv);
|
---|
[1168] | 32 | HWND StartFM3(HAB hab, INT argc, CHAR ** argv);
|
---|
| 33 |
|
---|
[1209] | 34 | // Data declarations
|
---|
[1398] | 35 | extern PCSZ PCSZ_ARCHIVERBB2;
|
---|
| 36 | extern PCSZ PCSZ_ASSOCDAT;
|
---|
| 37 | extern PCSZ PCSZ_CMDLINESDAT;
|
---|
| 38 | extern PCSZ PCSZ_CMDMINIDAT;
|
---|
| 39 | extern PCSZ PCSZ_COMMANDSDAT;
|
---|
| 40 | extern PCSZ PCSZ_FILTERSDAT;
|
---|
| 41 | extern PCSZ PCSZ_GREPMASKDAT;
|
---|
| 42 | extern PCSZ PCSZ_PATTERNSDAT;
|
---|
| 43 | extern PCSZ PCSZ_RESOURCEDAT;
|
---|
| 44 | extern PCSZ PCSZ_QUICKTLSDAT;
|
---|
| 45 | extern PCSZ PCSZ_FM3TOOLSDAT;
|
---|
| 46 | extern PCSZ PCSZ_USERDIRSDAT;
|
---|
| 47 | extern PCSZ PCSZ_FM2PLAYEXE;
|
---|
| 48 | extern PCSZ PCSZ_FM2PLAYTEMP;
|
---|
[1400] | 49 | extern PCSZ PCSZ_LVMGUICMD;
|
---|
| 50 | extern PCSZ PCSZ_DFSOS2EXE;
|
---|
| 51 | extern PCSZ PCSZ_MINILVMEXE;
|
---|
| 52 | extern PCSZ PCSZ_FDISKPMEXE;
|
---|
[1479] | 53 | extern PCSZ PCSZ_IMAGEEXE;
|
---|
[1400] | 54 | extern PCSZ PCSZ_LVMEXE;
|
---|
| 55 | extern PCSZ PCSZ_ARCCNR;
|
---|
| 56 | extern PCSZ PCSZ_COLLECTOR;
|
---|
| 57 | extern PCSZ PCSZ_DIRCNR;
|
---|
[1409] | 58 | extern PCSZ PCSZ_DIRCMP;
|
---|
[1400] | 59 | extern PCSZ PCSZ_DIRSIZES;
|
---|
| 60 | extern PCSZ PCSZ_TOOLBAR;
|
---|
| 61 | extern PCSZ PCSZ_TREECNR;
|
---|
[1402] | 62 | extern PCSZ PCSZ_SHUTDOWNSTATE;
|
---|
| 63 | extern PCSZ PCSZ_FM2TEMPTEXT;
|
---|
| 64 | extern PCSZ DRMDRFFM2ARC;
|
---|
| 65 | extern PCSZ DRF_FM2ARCHIVE;
|
---|
| 66 | extern PCSZ DRMDRFOS2FILE;
|
---|
| 67 | extern PCSZ DRM_FM2ARCMEMBER;
|
---|
| 68 | extern PCSZ DRM_OS2FILE;
|
---|
| 69 | extern PCSZ FM2Str;
|
---|
| 70 | extern PCSZ FM3Folder;
|
---|
[1209] | 71 | extern CHAR HomePath[CCHMAXPATH];
|
---|
[1402] | 72 | extern PCSZ LONGNAME;
|
---|
[1209] | 73 | extern CHAR *NullStr;
|
---|
| 74 | extern ULONG OS2ver[2];
|
---|
| 75 | extern PFNWP PFNWPCnr;
|
---|
| 76 | extern PFNWP PFNWPMLE;
|
---|
[1402] | 77 | extern PCSZ Settings;
|
---|
| 78 | extern PCSZ Details;
|
---|
| 79 | extern PCSZ PCSZ_TREE;
|
---|
| 80 | extern PCSZ PCSZ_ICON;
|
---|
[1209] | 81 | extern CHAR SwapperDat[CCHMAXPATH];
|
---|
| 82 | extern CHAR ThousandsSeparator[2];
|
---|
[1395] | 83 | extern CHAR DateSeparator[2];
|
---|
| 84 | extern CHAR TimeSeparator[2];
|
---|
| 85 | extern ULONG ulTimeFmt;
|
---|
| 86 | extern ULONG ulDateFmt;
|
---|
[1436] | 87 | extern PCSZ FNT_HELVETICA;
|
---|
[1400] | 88 | extern PCSZ FNT_6HELVETICA;
|
---|
| 89 | extern PCSZ FNT_8HELVETICA;
|
---|
| 90 | extern PCSZ FNT_8HELVETICABOLD;
|
---|
| 91 | extern PCSZ FNT_10SYSTEMMONOTEXT;
|
---|
| 92 | extern PCSZ FNT_10SYSTEMPROPORT;
|
---|
| 93 | extern PCSZ FNT_2SYSTEMVIO;
|
---|
| 94 | extern PCSZ FNT_4SYSTEMVIO;
|
---|
| 95 | extern PCSZ FNT_10SYSTEMVIO;
|
---|
| 96 | extern PCSZ FNT_8TIMESNEWROMAN;
|
---|
[1402] | 97 | extern PCSZ PCSZ_CM_ALLOCRECORD;
|
---|
[1398] | 98 | extern PCSZ PCSZ_DOSCREATEMUTEXSEM;
|
---|
[1450] | 99 | extern PCSZ PCSZ_DOSCREATEEVENTSEM;
|
---|
[1398] | 100 | extern PCSZ PCSZ_DOSDUPHANDLE;
|
---|
| 101 | extern PCSZ PCSZ_DOSGETINFOBLOCKS;
|
---|
| 102 | extern PCSZ PCSZ_DOSQUERYPATHINFO;
|
---|
| 103 | extern PCSZ PCSZ_DOSSEARCHPATH;
|
---|
[1402] | 104 | extern PCSZ PCSZ_DRGACCESSDRAGINFO;
|
---|
[1400] | 105 | extern PCSZ PCSZ_POSTMSG;
|
---|
[1395] | 106 | extern PCSZ PCSZ_WINCREATEWINDOW;
|
---|
[1398] | 107 | extern PCSZ PCSZ_WINLOADACCELTABLE;
|
---|
| 108 | extern PCSZ PCSZ_WINSETACCELTABLE;
|
---|
[1395] | 109 | extern PCSZ PCSZ_INIQUERYPRFTEXT;
|
---|
[1402] | 110 | extern PCSZ PCSZ_PRFOPENPROFILEFAILED;
|
---|
[1398] | 111 | extern PCSZ PCSZ_PRFQUERYPROFILEDATA;
|
---|
| 112 | extern PCSZ PCSZ_PRFQUERYPROFILESIZE;
|
---|
| 113 | extern PCSZ PCSZ_PRFQUERYPROFILESTRING;
|
---|
[1395] | 114 | extern PCSZ PCSZ_FILLDIRQCURERRTEXT;
|
---|
[1398] | 115 | extern PCSZ PCSZ_NODATA;
|
---|
[1438] | 116 | extern PCSZ PCSZ_BACKSLASH;
|
---|
[1395] | 117 | extern PCSZ PCSZ_STARDOTEXE;
|
---|
| 118 | extern PCSZ PCSZ_STARDOTINI;
|
---|
| 119 | extern PCSZ PCSZ_STARDOTLST;
|
---|
[1398] | 120 | extern PCSZ PCSZ_STARDOTPMD;
|
---|
| 121 | extern PCSZ PCSZ_STARDOTTXT;
|
---|
| 122 | extern PCSZ PCSZ_DOTEXE;
|
---|
| 123 | extern PCSZ PCSZ_DOTCOM;
|
---|
| 124 | extern PCSZ PCSZ_DOTCMD;
|
---|
| 125 | extern PCSZ PCSZ_DOTBTM;
|
---|
| 126 | extern PCSZ PCSZ_DOTBAT;
|
---|
| 127 | extern PCSZ PCSZ_DOTLST;
|
---|
| 128 | extern PCSZ PCSZ_DOTTLS;
|
---|
| 129 | extern PCSZ PCSZ_DOTHLP;
|
---|
| 130 | extern PCSZ PCSZ_DOTINF;
|
---|
| 131 | extern PCSZ PCSZ_DOTMP3;
|
---|
[1479] | 132 | extern PCSZ PCSZ_DOTMPG;
|
---|
| 133 | extern PCSZ PCSZ_DOTMPEG;
|
---|
[1398] | 134 | extern PCSZ PCSZ_DOTOGG;
|
---|
| 135 | extern PCSZ PCSZ_DOTFLAC;
|
---|
| 136 | extern PCSZ PCSZ_DOTJPEG;
|
---|
| 137 | extern PCSZ PCSZ_DOTJPG;
|
---|
| 138 | extern PCSZ PCSZ_DOTICO;
|
---|
| 139 | extern PCSZ PCSZ_DOTPTR;
|
---|
| 140 | extern PCSZ PCSZ_DOTBB2;
|
---|
| 141 | extern PCSZ PCSZ_DOTBMP;
|
---|
| 142 | extern PCSZ PCSZ_DOTCOMMENTS;
|
---|
| 143 | extern PCSZ PCSZ_PATH;
|
---|
[1400] | 144 | extern PCSZ PCSZ_LIBPATH;
|
---|
| 145 | extern PCSZ PCSZ_WPURLDEFAULTSETTINGS;
|
---|
| 146 | extern PCSZ WC_ARCCONTAINER;
|
---|
| 147 | extern PCSZ WC_ARCSTATUS;
|
---|
| 148 | extern PCSZ WC_AUTOVIEW;
|
---|
| 149 | extern PCSZ WC_BUBBLE;
|
---|
| 150 | extern PCSZ WC_COLLECTOR;
|
---|
| 151 | extern PCSZ WC_COLSTATUS;
|
---|
| 152 | extern PCSZ WC_DATABAR;
|
---|
| 153 | extern PCSZ WC_DIRCONTAINER;
|
---|
| 154 | extern PCSZ WC_DIRSTATUS;
|
---|
| 155 | extern PCSZ WC_DRIVEBACK;
|
---|
| 156 | extern PCSZ WC_DRIVEBUTTONS;
|
---|
| 157 | extern PCSZ WC_ERRORWND;
|
---|
| 158 | extern PCSZ WC_INIEDITOR;
|
---|
| 159 | extern PCSZ WC_LED;
|
---|
[1402] | 160 | extern PCSZ WC_MAINWND;
|
---|
[1400] | 161 | extern PCSZ WC_MAINWND2;
|
---|
| 162 | extern PCSZ WC_MINITIME;
|
---|
| 163 | extern PCSZ WC_MLEEDITOR;
|
---|
| 164 | extern PCSZ WC_NEWVIEW;
|
---|
| 165 | extern PCSZ WC_OBJECTWINDOW;
|
---|
| 166 | extern PCSZ WC_SEEALL;
|
---|
| 167 | extern PCSZ WC_SEESTATUS;
|
---|
| 168 | extern PCSZ WC_STATUS;
|
---|
| 169 | extern PCSZ WC_TOOLBACK;
|
---|
| 170 | extern PCSZ WC_TOOLBUTTONS;
|
---|
| 171 | extern PCSZ WC_TREECONTAINER;
|
---|
| 172 | extern PCSZ WC_TREEOPENBUTTON;
|
---|
| 173 | extern PCSZ WC_TREESTATUS;
|
---|
| 174 | extern PCSZ WC_VIEWSTATUS;
|
---|
[1451] | 175 | extern BOOL fDontSuggestAgain;
|
---|
[1320] | 176 | extern BOOL fInitialDriveScan;
|
---|
[1209] | 177 | extern BOOL fAmAV2;
|
---|
| 178 | extern BOOL fChangeTarget;
|
---|
| 179 | extern BOOL fIniExisted;
|
---|
| 180 | extern BOOL fLogFile;
|
---|
[1369] | 181 | extern BOOL fProtectOnly;
|
---|
[1209] | 182 | extern BOOL fReminimize;
|
---|
| 183 | extern BOOL fWantFirstTimeInit;
|
---|
| 184 | extern HPOINTER hptrApp;
|
---|
| 185 | extern HPOINTER hptrArc;
|
---|
| 186 | extern HPOINTER hptrArrow;
|
---|
| 187 | extern HPOINTER hptrArt;
|
---|
| 188 | extern HPOINTER hptrBusy;
|
---|
| 189 | extern HPOINTER hptrCDROM;
|
---|
| 190 | extern HPOINTER hptrDrive;
|
---|
| 191 | extern HPOINTER hptrEW;
|
---|
| 192 | extern HPOINTER hptrFloppy;
|
---|
| 193 | extern HPOINTER hptrNS;
|
---|
| 194 | extern HPOINTER hptrRamdisk;
|
---|
| 195 | extern HPOINTER hptrRemote;
|
---|
| 196 | extern HPOINTER hptrRemovable;
|
---|
| 197 | extern HPOINTER hptrVirtual;
|
---|
| 198 | extern HPOINTER hptrZipstrm;
|
---|
| 199 | extern CHAR *pFM2SaveDirectory;
|
---|
| 200 | extern CHAR *pTmpDir;
|
---|
| 201 | extern CHAR profile[CCHMAXPATH];
|
---|
[1400] | 202 | extern CHAR *pLibPathStrict;
|
---|
[1209] | 203 | extern ULONGLONG ullTmpSpaceNeeded;
|
---|
[1303] | 204 | extern HMTX hmtxFM2Globals;
|
---|
[1313] | 205 | extern HMTX hmtxFM2Delete;
|
---|
[1444] | 206 | extern HMTX hmtFillingTreeCnr;
|
---|
| 207 | extern HEV hevInitialCnrScanComplete;
|
---|
[1168] | 208 |
|
---|
| 209 | #endif // INIT_H
|
---|