source: trunk/src/mmi_imports.h@ 6

Last change on this file since 6 was 2, checked in by ktk, 17 years ago

Initial import

File size: 3.0 KB
Line 
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
25APIRET SpiInstall (PSZ SpiDllName);
26typedef APIRET (*CODE_SPIINSTALL) (PSZ SpiDllName);
27
28// Internal, import from MDM.DLL
29ULONG APIENTRY mciSendCommand (USHORT usDeviceID, USHORT usMessage,
30 ULONG ulParam1, PVOID pParam2, USHORT usUserParm);
31typedef ULONG (APIENTRY *CODE_MCISENDCOMMAND) (USHORT usDeviceID, USHORT usMessage,
32 ULONG ulParam1, PVOID pParam2, USHORT usUserParm);
33typedef ULONG (APIENTRY *CODE_MCISETSYSVALUE) (USHORT iSysValue, USHORT pValue);
34
35// Internal, import from MMIO.DLL
36ULONG APIENTRY mmioMigrateIniFile (ULONG ulFlags);
37ULONG APIENTRY mmioIniFileHandler (PMMIO_MMIOINSTALL IOProcInfo, ULONG dwFlags);
38ULONG APIENTRY mmioIniFileCODEC (PMMIO_MMIOCODEC IOCodecInfo, ULONG ulFlags);
39typedef ULONG (APIENTRY *CODE_MMIOMIGRATEINIFILE) (ULONG ulFlags);
40typedef ULONG (APIENTRY *CODE_MMIOINIFILEHANDLER) (PMMIO_MMIOINSTALL IOProcInfo, ULONG dwFlags);
41typedef 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
56BOOL MINSTALL_LinkInImports (void);
57VOID MINSTALL_CleanUpImports (void);
58VOID MINSTALL_MigrateMMPMMMIOFile (void);
59VOID MINSTALL_LowerMasterVolume (void);
60
61// Linked in Code-pointers
62CODE_MCISETSYSVALUE CODE_MciSetSysValue;
63CODE_SPIINSTALL CODE_SpiInstallFunc;
64CODE_MMIOINIFILEHANDLER CODE_mmioIniFileHandlerFunc;
65CODE_MMIOINIFILECODEC CODE_mmioIniFileCODECFunc;
66CODE_MMIOMIGRATEINIFILE CODE_mmioMigrateIniFileFunc;
Note: See TracBrowser for help on using the repository browser.