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 | // Contains all imports used by minstall. We have to dynamically link
|
---|
21 | // because otherwise FILT.DLL f00ks up, if no MMOS/2 installed.
|
---|
22 | // These routines will only get loaded during MINSTALL_InstallPackage()
|
---|
23 |
|
---|
24 | // Internal, export from SSMINI.DLL
|
---|
25 | APIRET SpiInstall (PSZ SpiDllName);
|
---|
26 | typedef APIRET (*CODE_SPIINSTALL) (PSZ SpiDllName);
|
---|
27 |
|
---|
28 | // Internal, import from MDM.DLL
|
---|
29 | ULONG APIENTRY mciSendCommand (USHORT usDeviceID, USHORT usMessage,
|
---|
30 | ULONG ulParam1, PVOID pParam2, USHORT usUserParm);
|
---|
31 | typedef ULONG (APIENTRY *CODE_MCISENDCOMMAND) (USHORT usDeviceID, USHORT usMessage,
|
---|
32 | ULONG ulParam1, PVOID pParam2, USHORT usUserParm);
|
---|
33 | typedef ULONG (APIENTRY *CODE_MCISETSYSVALUE) (USHORT iSysValue, USHORT pValue);
|
---|
34 |
|
---|
35 | // Internal, import from MMIO.DLL
|
---|
36 | ULONG APIENTRY mmioMigrateIniFile (ULONG ulFlags);
|
---|
37 | ULONG APIENTRY mmioIniFileHandler (PMMIO_MMIOINSTALL IOProcInfo, ULONG dwFlags);
|
---|
38 | ULONG APIENTRY mmioIniFileCODEC (PMMIO_MMIOCODEC IOCodecInfo, ULONG ulFlags);
|
---|
39 | typedef ULONG (APIENTRY *CODE_MMIOMIGRATEINIFILE) (ULONG ulFlags);
|
---|
40 | typedef ULONG (APIENTRY *CODE_MMIOINIFILEHANDLER) (PMMIO_MMIOINSTALL IOProcInfo, ULONG dwFlags);
|
---|
41 | typedef ULONG (APIENTRY *CODE_MMIOINIFILECODEC) (PMMIO_MMIOCODEC IOCodecInfo, ULONG ulFlags);
|
---|
42 |
|
---|
43 | #define MMIO_SUCCESS 0
|
---|
44 |
|
---|
45 | #define MMIO_INSTALLPROC 0x00000001
|
---|
46 | #define MMIO_REMOVEPROC 0x00000002
|
---|
47 | #define MMIO_FINDPROC 0x00000004
|
---|
48 | #define MMIO_MATCHFOURCC 0x00000040
|
---|
49 | #define MMIO_MATCHDLL 0x00000080
|
---|
50 | #define MMIO_MATCHPROCEDURENAME 0x00000100
|
---|
51 | #define MMIO_MATCHCOMPRESSTYPE 0x00000800
|
---|
52 | #define MMIO_FULLPATH 0x00000200
|
---|
53 | #define MMIO_EXTENDED_STRUCT 0x00001000
|
---|
54 |
|
---|
55 | // Internal routines to Link-In Import functions
|
---|
56 | BOOL MINSTALL_LinkInImports (void);
|
---|
57 | VOID MINSTALL_CleanUpImports (void);
|
---|
58 | VOID MINSTALL_MigrateMMPMMMIOFile (void);
|
---|
59 | VOID MINSTALL_LowerMasterVolume (void);
|
---|
60 |
|
---|
61 | // Linked in Code-pointers
|
---|
62 | CODE_MCISETSYSVALUE CODE_MciSetSysValue;
|
---|
63 | CODE_SPIINSTALL CODE_SpiInstallFunc;
|
---|
64 | CODE_MMIOINIFILEHANDLER CODE_mmioIniFileHandlerFunc;
|
---|
65 | CODE_MMIOINIFILECODEC CODE_mmioIniFileCODECFunc;
|
---|
66 | CODE_MMIOMIGRATEINIFILE CODE_mmioMigrateIniFileFunc;
|
---|