[2] | 1 | //
|
---|
| 2 | // MINSTALL.DLL (c) Copyright 2002-2005 Martin Kiewitz
|
---|
| 3 | //
|
---|
| 4 | // This file is part of MINSTALL.DLL for OS/2 / eComStation
|
---|
| 5 | //
|
---|
| 6 | // MINSTALL.DLL is free software: you can redistribute it and/or modify
|
---|
| 7 | // it under the terms of the GNU General Public License as published by
|
---|
| 8 | // the Free Software Foundation, either version 3 of the License, or
|
---|
| 9 | // (at your option) any later version.
|
---|
| 10 | //
|
---|
| 11 | // MINSTALL.DLL is distributed in the hope that it will be useful,
|
---|
| 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 14 | // GNU General Public License for more details.
|
---|
| 15 | //
|
---|
| 16 | // You should have received a copy of the GNU General Public License
|
---|
| 17 | // along with MINSTALL.DLL. If not, see <http://www.gnu.org/licenses/>.
|
---|
| 18 | //
|
---|
| 19 |
|
---|
| 20 | FILECONTROL CONTROLSCR;
|
---|
| 21 | FILECONTROL FILELISTSCR;
|
---|
| 22 | FILECONTROL CHANGESCR;
|
---|
| 23 |
|
---|
| 24 | HAB MINSTALL_PMHandle;
|
---|
| 25 | HMQ MINSTALL_MSGQHandle;
|
---|
| 26 | CHAR MINSTALL_MMBase[MINSTMAX_PATHLENGTH];
|
---|
| 27 | CHAR MINSTALL_BootDrive[3];
|
---|
| 28 | CHAR MINSTALL_BootLetter[2];
|
---|
| 29 | CHAR MINSTALL_MMBaseDrive[3];
|
---|
| 30 | CHAR MINSTALL_MMBaseLetter[2];
|
---|
| 31 | // Path means pathname, Dir means Directory (directory includes ending '\'
|
---|
| 32 | CHAR MINSTALL_SourcePath[MINSTMAX_PATHLENGTH];
|
---|
| 33 | CHAR MINSTALL_SourceDir[MINSTMAX_PATHLENGTH];
|
---|
| 34 | CHAR MINSTALL_InstallPath[MINSTMAX_PATHLENGTH];
|
---|
| 35 | CHAR MINSTALL_InstallDir[MINSTMAX_PATHLENGTH];
|
---|
| 36 | CHAR MINSTALL_DLLDir[MINSTMAX_PATHLENGTH];
|
---|
| 37 | CHAR MINSTALL_CompListINI[MINSTMAX_PATHLENGTH];
|
---|
| 38 |
|
---|
| 39 | CHAR MINSTLOG_FileName[MINSTMAX_PATHLENGTH];
|
---|
| 40 | FILE *MINSTLOG_FileHandle;
|
---|
| 41 |
|
---|
| 42 | CHAR MINSTALL_TempMacroSpace[MINSTMAX_PATHLENGTH];
|
---|
| 43 |
|
---|
| 44 | ULONG MINSTALL_PublicGroupCount;
|
---|
| 45 | PMINSTPUBGROUP MINSTALL_PublicGroupArrayPtr;
|
---|
| 46 |
|
---|
| 47 | // Contains all processed things
|
---|
| 48 | ULONG MINSTALL_Done;
|
---|
| 49 | ULONG MINSTALL_ErrorMsgID;
|
---|
| 50 | CHAR MINSTALL_ErrorMsg[1024];
|
---|
| 51 |
|
---|
| 52 | // Master-Control-File Variables...
|
---|
| 53 | USHORT MCF_GroupCount;
|
---|
| 54 | PMINSTGRP MCF_GroupArrayPtr;
|
---|
| 55 | USHORT MCF_SourceDirCount;
|
---|
| 56 | PMINSTDIR MCF_SourceDirArrayPtr;
|
---|
| 57 | USHORT MCF_DestinDirCount;
|
---|
| 58 | PMINSTDIR MCF_DestinDirArrayPtr;
|
---|
| 59 | USHORT FCF_FileCount;
|
---|
| 60 | PMINSTFILE FCF_FileArrayPtr;
|
---|
| 61 | CHAR MCF_PackageName[MINSTMAX_STRLENGTH];
|
---|
| 62 | ULONG MCF_CodePage;
|
---|
| 63 | ULONG MCF_MUnitCount;
|
---|
| 64 | CHAR MCF_Medianame[MINSTMAX_STRLENGTH];
|
---|
| 65 |
|
---|
| 66 | BOOL MINSTALL_GeninUsed;
|
---|
| 67 | BOOL MINSTALL_IsBaseInstallation;
|
---|
| 68 | BOOL MINSTALL_IsFirstInit;
|
---|
| 69 | BOOL MINSTALL_SystemShouldReboot;
|
---|
| 70 |
|
---|
| 71 | /* HMODULE FCF_CARDINFOHandle; */
|
---|
| 72 | /* PMINSTFILE FCF_CARDINFOFilePtr; */
|
---|
| 73 | HMODULE FCF_LastCARDINFOHandle;
|
---|
| 74 |
|
---|
| 75 | // MINSTCID variables
|
---|
| 76 | USHORT MINSTCID_GroupCount;
|
---|
| 77 | USHORT MINSTCID_FileCount;
|
---|
| 78 |
|
---|
| 79 | HEV CustomAPI_InitEventHandle;
|
---|
| 80 | TID CustomAPI_ThreadID;
|
---|
| 81 | BOOL CustomAPI_ThreadCreated;
|
---|
| 82 | HAB CustomAPI_PMHandle;
|
---|
| 83 | HMQ CustomAPI_MSGQHandle;
|
---|
| 84 | HWND CustomAPI_WindowHandle;
|
---|
| 85 | ULONG CustomAPI_ConfigSysLine;
|
---|
| 86 |
|
---|
| 87 | // Custom-DLL related functions (10.07.2005 - compatibility)
|
---|
| 88 | PVOID CustomDLL_EntryPoint;
|
---|
| 89 | PSZ CustomDLL_EntryParms;
|
---|
| 90 | PSZ CustomDLL_CustomData;
|
---|
| 91 |
|
---|
| 92 | PMINSTINI_DEFENTRY ICF_CheckFuncList;
|
---|
| 93 | PMINSTINI_DEFENTRY ICF_CheckParmList;
|
---|
| 94 | PMINSTINI_DEFENTRY ICF_CurFuncEntry;
|
---|
| 95 | PMINSTINI_DEFENTRY ICF_CurParmEntry;
|
---|
| 96 | ULONG ICF_FilledParms;
|
---|
| 97 |
|
---|
| 98 | // Public Internal Routines
|
---|
| 99 | CHAR MINSTALL_GetValidChar (PCHAR *CurPosPtr, PCHAR EndPos, PULONG CurLineNo);
|
---|
| 100 | PMINSTDIR MINSTALL_SearchSourceDirID (ULONG DirectoryID);
|
---|
| 101 | PMINSTDIR MINSTALL_SearchDestinDirID (ULONG DirectoryID);
|
---|
| 102 | PMINSTGRP MINSTALL_SearchGroupID (ULONG GroupID);
|
---|
| 103 | PMINSTFILE MINSTALL_SearchFileCRC32 (ULONG FileCRC32);
|
---|
| 104 | PCHAR MINSTALL_ExtractValue (PULONG DestPtr, PCHAR StartPos, PCHAR EndPos);
|
---|
| 105 | PSZ MINSTALL_GetPointerToMacro (PCHAR *CurPosPtr, PCHAR EndPos);
|
---|
| 106 | PCHAR MINSTALL_ExtractMacroString (PCHAR DestPtr, ULONG DestMaxSize, PCHAR CurPos, PCHAR EndPos);
|
---|