home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1997 March / VPR9703B.ISO / driver / hp / win31 / lj5l_n / support.inc < prev    next >
Text File  |  1996-01-30  |  5KB  |  106 lines

  1. '$IFNDEF SUPPORT_INCLUDED
  2. '$DEFINE SUPPORT_INCLUDED
  3.  
  4. CONST MAX_PATH     =      260
  5. CONST MAX_PORT     =       100     '' Guess only
  6. CONST MAX_DEVICE_MODEL =   100     '' Guess only
  7. CONST MAX_DRIVE =   3
  8.  
  9. CONST IM_COMPLETE  =  0
  10. CONST IM_CUSTOM    =      1
  11. CONST IM_NETADMIN  =  2
  12.  
  13. CONST IT_STANDALONE=  0
  14. CONST IT_NETWORK   =  1
  15.  
  16. '' make sure these numbers match the ones in the infoerr.h file
  17. CONST c_iDO_NET_ADMIN = 13
  18.  
  19. TYPE RUNTIME
  20.     iInstallMethod as integer
  21.     lpszPort as Pointer TO STRING * MAX_PORT
  22.     bHasBidi as integer
  23.     lpszDeviceID as Pointer TO STRING * MAX_DEVICE_MODEL   '' Device on port (maybe null string)
  24.     lpszPrinterName as Pointer TO STRING * MAX_DEVICE_MODEL '' Name of the printer
  25.     bReboot  as integer
  26. END TYPE
  27.  
  28. TYPE ENVIRONMENT
  29.     iOSMajor as integer
  30.     iOSMinor as integer
  31.     szTempDir as pointer to STRING * MAX_PATH
  32.     szWindowsDir as pointer TO STRING * MAX_PATH
  33.     szSystemDir as pointer to STRING * MAX_PATH
  34.     szWindowsDrive as pointer to STRING * MAX_DRIVE
  35.     szSystemDrive as pointer to STRING * MAX_DRIVE
  36.     iDisplayX as integer
  37.     iDisplayY as integer
  38.     iInstallType  as integer
  39.     runTime as RUNTIME
  40. END TYPE
  41.  
  42. '' Make sure these numbers match the ones in the vercheck.cpp file
  43. const   c_iVERSION_1_NEWER%         = 100
  44. const   c_iVERSION_1_NOT_FOUND%     = 101
  45. const   c_iVERSION_1_2_SAME%        = 200
  46. const   c_iVERSION_1_2_NOT_FOUND%   = 201
  47. const   c_iVERSION_1_2_NO_VERSION%  = 202
  48. const   c_iVERSION_2_NEWER%         = 300
  49. const   c_iVERSION_2_NOT_FOUND%     = 301
  50.  
  51.  
  52. declare function GetInstallEnvironment lib "support.dll" () as pointer to ENVIRONMENT
  53. declare function FormatNumber lib "support.dll" ( dwNumber as long, iBufLen as integer, lpszBuf as string, lpszThousands as string ) as integer
  54. declare function FixMainWindow lib "support.dll" ( hWndFrame as integer ) as integer
  55.  
  56. declare function ReadAllFileGroups lib "support.dll" () as integer
  57. declare function CleanTempDir lib "support.dll" (szDir$) as integer
  58.  
  59. declare function ExpandFile lib "support.dll" (szSrcFile$, szDestFile$) as integer
  60. declare function FileVersionCompare lib "support.dll" (szSrcFile$, szDestFile$, ipSucces as pointer to integer) as integer
  61.  
  62. declare function IsSupportedPrinterAttached lib "support.dll" (ipCount as pointer to integer) as integer
  63. DECLARE FUNCTION CheckSound LIB "SUPPORT.DLL" () AS INTEGER
  64.  
  65. DECLARE FUNCTION Begin3d LIB "SUPPORT.DLL" (HANDLE%) AS INTEGER
  66. DECLARE FUNCTION End3d LIB "SUPPORT.DLL" (HANDLE%) AS INTEGER
  67.  
  68. ''declare function BeginProgramManager lib "support.dll" () as integer
  69. ''declare function EndProgramManager lib "support.dll" () as integer
  70. declare function ReplaceProgmanItem lib "support.dll" ( lpszOldName$, lpszCmdLine$, lpszNewName$, lpszExtra$ ) as integer
  71. declare function DeleteProgmanGroup lib "support.dll" ( lpszGroupName$ ) as integer
  72. declare function ReloadProgmanGroup lib "support.dll" ( lpszGroupName$ ) as integer
  73. declare function DeleteProgmanItem lib "support.dll" ( lpszItemName$ ) as integer
  74. declare function Initialize lib "support.dll"  () as integer
  75. declare function Cleanup lib "support.dll" () as integer
  76.  
  77. declare function BidiReady lib "support.dll" () as long
  78.  
  79. declare function ReadInfoFile lib "support.dll" () as integer
  80. declare function ReleaseInfoFile lib "support.dll" () as integer
  81.  
  82. ''declare function ConfigureDriver lib "support.dll" (lpszPrinterID$, lpszPort$ ) as integer
  83. declare function TestBidi lib "support.dll" (lpszPort as any) as integer
  84.  
  85. declare function IsPrinterSupported lib "support.dll" ( lpszPrinterID$  ) as integer
  86. declare function GetPrinterCount lib "support.dll" () as integer
  87.  
  88. ''This function should be in support dll before final build
  89. declare function IsComponentSelected lib "support.dll" (lpszTitle$) as integer
  90.  
  91. ''LPSYSTEM FAR PASCAL _export GetSystem();
  92.  
  93. declare function PutComponentsInCopyList lib "support.dll" (lpszSection$, lpszComponent$) as integer
  94.  
  95. '' These are temporary functions to make sure the usabloody inslatter works.
  96. ''declare function PerformAllActions lib "support.dll" () as integer
  97. ''declare function  UpdateAllIniFiles lib "support.dll" () as integer
  98. declare function IniActionUpdate lib "support.dll" () as integer
  99.  
  100. ''declare function  InstallDrivers lib "support.dll" () as integer
  101. ''declare function  CompleteInstall lib "support.dll" () as integer
  102.  
  103. declare function GetComponentDir lib "support.dll" (lpszCompSectionName$, lpszDir$) as integer
  104.  
  105. '$ENDIF
  106.