home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1997 July
/
VPR9707B.ISO
/
DRIVER
/
HP
/
WIN95
/
5L98
/
DISK1
/
SUPPORT.INC
< prev
next >
Wrap
Text File
|
1996-01-08
|
5KB
|
106 lines
'$IFNDEF SUPPORT_INCLUDED
'$DEFINE SUPPORT_INCLUDED
CONST MAX_PATH = 260
CONST MAX_PORT = 100 '' Guess only
CONST MAX_DEVICE_MODEL = 100 '' Guess only
CONST MAX_DRIVE = 3
CONST IM_COMPLETE = 0
CONST IM_CUSTOM = 1
CONST IM_NETADMIN = 2
CONST IT_STANDALONE= 0
CONST IT_NETWORK = 1
'' make sure these numbers match the ones in the infoerr.h file
CONST c_iDO_NET_ADMIN = 13
TYPE RUNTIME
iInstallMethod as integer
lpszPort as Pointer TO STRING * MAX_PORT
bHasBidi as integer
lpszDeviceID as Pointer TO STRING * MAX_DEVICE_MODEL '' Device on port (maybe null string)
lpszPrinterName as Pointer TO STRING * MAX_DEVICE_MODEL '' Name of the printer
bReboot as integer
END TYPE
TYPE ENVIRONMENT
iOSMajor as integer
iOSMinor as integer
szTempDir as pointer to STRING * MAX_PATH
szWindowsDir as pointer TO STRING * MAX_PATH
szSystemDir as pointer to STRING * MAX_PATH
szWindowsDrive as pointer to STRING * MAX_DRIVE
szSystemDrive as pointer to STRING * MAX_DRIVE
iDisplayX as integer
iDisplayY as integer
iInstallType as integer
runTime as RUNTIME
END TYPE
'' Make sure these numbers match the ones in the vercheck.cpp file
const c_iVERSION_1_NEWER% = 100
const c_iVERSION_1_NOT_FOUND% = 101
const c_iVERSION_1_2_SAME% = 200
const c_iVERSION_1_2_NOT_FOUND% = 201
const c_iVERSION_1_2_NO_VERSION% = 202
const c_iVERSION_2_NEWER% = 300
const c_iVERSION_2_NOT_FOUND% = 301
declare function GetInstallEnvironment lib "support.dll" () as pointer to ENVIRONMENT
declare function FormatNumber lib "support.dll" ( dwNumber as long, iBufLen as integer, lpszBuf as string, lpszThousands as string ) as integer
declare function FixMainWindow lib "support.dll" ( hWndFrame as integer ) as integer
declare function ReadAllFileGroups lib "support.dll" () as integer
declare function CleanTempDir lib "support.dll" (szDir$) as integer
declare function ExpandFile lib "support.dll" (szSrcFile$, szDestFile$) as integer
declare function FileVersionCompare lib "support.dll" (szSrcFile$, szDestFile$, ipSucces as pointer to integer) as integer
declare function IsSupportedPrinterAttached lib "support.dll" (ipCount as pointer to integer) as integer
DECLARE FUNCTION CheckSound LIB "SUPPORT.DLL" () AS INTEGER
DECLARE FUNCTION Begin3d LIB "SUPPORT.DLL" (HANDLE%) AS INTEGER
DECLARE FUNCTION End3d LIB "SUPPORT.DLL" (HANDLE%) AS INTEGER
''declare function BeginProgramManager lib "support.dll" () as integer
''declare function EndProgramManager lib "support.dll" () as integer
declare function ReplaceProgmanItem lib "support.dll" ( lpszOldName$, lpszCmdLine$, lpszNewName$, lpszExtra$ ) as integer
declare function DeleteProgmanGroup lib "support.dll" ( lpszGroupName$ ) as integer
declare function ReloadProgmanGroup lib "support.dll" ( lpszGroupName$ ) as integer
declare function DeleteProgmanItem lib "support.dll" ( lpszItemName$ ) as integer
declare function Initialize lib "support.dll" () as integer
declare function Cleanup lib "support.dll" () as integer
declare function BidiReady lib "support.dll" () as long
declare function ReadInfoFile lib "support.dll" () as integer
declare function ReleaseInfoFile lib "support.dll" () as integer
''declare function ConfigureDriver lib "support.dll" (lpszPrinterID$, lpszPort$ ) as integer
declare function TestBidi lib "support.dll" (lpszPort as any) as integer
declare function IsPrinterSupported lib "support.dll" ( lpszPrinterID$ ) as integer
declare function GetPrinterCount lib "support.dll" () as integer
''This function should be in support dll before final build
declare function IsComponentSelected lib "support.dll" (lpszTitle$) as integer
''LPSYSTEM FAR PASCAL _export GetSystem();
declare function PutComponentsInCopyList lib "support.dll" (lpszSection$, lpszComponent$) as integer
'' These are temporary functions to make sure the usabloody inslatter works.
''declare function PerformAllActions lib "support.dll" () as integer
''declare function UpdateAllIniFiles lib "support.dll" () as integer
declare function IniActionUpdate lib "support.dll" () as integer
''declare function InstallDrivers lib "support.dll" () as integer
''declare function CompleteInstall lib "support.dll" () as integer
declare function GetComponentDir lib "support.dll" (lpszCompSectionName$, lpszDir$) as integer
'$ENDIF