home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 October / PCWorld_2002-10_cd.bin / Software / Topware / fprint / fpdk400.exe / include / fpapi.bas next >
BASIC Source File  |  2000-07-18  |  4KB  |  53 lines

  1. Attribute VB_Name = "FPAPI"
  2.  
  3. '
  4. '       fpapi.bas
  5. '
  6. '               FinePrint API main header file
  7. '
  8. '               Copyright (c) 1999-2000 FinePrint Software
  9. '               All Rights Reserved.
  10. '
  11.  
  12. ' opaque handles into FinePrint API
  13. Global HFinePrint As Long               ' session handle from fpOpen
  14. Global HFpStat As Long                  ' stationery handle from fpCreateStationery
  15.  
  16. ' job count structure
  17. Type FpJobCount
  18.         cJobsPending As Long            ' number of print jobs queued in the Dispatcher
  19.         cJobsDeferred As Long           ' number of print jobs queued in the FinePrint UI
  20.         cJobsCumulative As Long         ' cumulative number of print jobs handled since Dispatcher startup
  21. End Type
  22.  
  23. ' job status structure
  24. Type FpJobStatus
  25.         fAppTerm As Long             ' =1 if the printing app has terminated
  26.         fJobStarted As Long          ' =1 if the print job started (StartDoc)
  27.         fJobCompleted As Long        ' =1 if the print job completed (EndDoc)
  28.         fTimeout As Long             ' =1 if we timed out waiting for the job
  29. End Type
  30.  
  31. ' function prototypes
  32. Public Declare Function fpClose Lib "FPAPI4A.DLL" Alias "fpClose" (ByVal hfp As Long, ByVal fDeleteJobs As Long) As FpError
  33. Public Declare Function fpCloseStationery Lib "FPAPI4A.DLL" (ByVal hfp As Long, ByVal hStat As Long) As FpError
  34. Public Declare Function fpCreateStationery Lib "FPAPI4A.DLL" (ByVal hfp As Long, ByVal pszStat As String, phStat As Long) As FpError
  35. Public Declare Function fpDeleteStationery Lib "FPAPI4A.DLL" (ByVal hfp As Long, ByVal pszStat As String) As FpError
  36. Public Declare Function fpDisplayDialog Lib "FPAPI4A.DLL" (ByVal hfp As Long, pdwDlg As Long) As FpError
  37. Public Declare Function fpGetFinePrinterName Lib "FPAPI4A.DLL" (ByVal iPrinter As Integer, ByVal pszFinePrinter As String) As FpError
  38. Public Declare Function fpGetJobCount Lib "FPAPI4A.DLL" (ByVal hfp As Long, pjc As FpJobCount) As FpError
  39. Public Declare Function fpGetLayoutAttr Lib "FPAPI4A.DLL" (ByVal hfp As Long, ByVal li As eLayoutItem, pAttr As Any, ByVal cbAttr As Long) As Long
  40. Public Declare Function fpGetStationeryAttr Lib "FPAPI4A.DLL" (ByVal hfp As Long, ByVal hStat As Long, ByVal si As eStatItem, ByVal sia As eStatItemAttr, pAttr As Any, ByVal cbAttr As Long) As Long
  41. Public Declare Function fpGetVersion Lib "FPAPI4A.DLL" () As Long
  42. Public Declare Function fpGetVersionReq Lib "FPAPI4A.DLL" () As Long
  43. Public Declare Function fpOpen Lib "FPAPI4A.DLL" (ByVal pszFinePrinter As String, phfp As Long) As FpError
  44. Public Declare Function fpOpenStationery Lib "FPAPI4A.DLL" (ByVal hfp As Long, ByVal pszStat As String, phStat As Long) As FpError
  45. Public Declare Function fpPrintAllJobs Lib "FPAPI4A.DLL" (ByVal hfp As Long, ByVal pszOutputFile As String, ByVal fShowProgress As Long, ByVal fDeleteJobsWhenDone As Long) As FpError
  46. Public Declare Function fpSaveSettings Lib "FPAPI4A.DLL" (ByVal hfp As Long) As FpError
  47. Public Declare Function fpSetDeferAll Lib "FPAPI4A.DLL" (ByVal hfp As Long, ByVal fDeferAll As Long) As FpError
  48. Public Declare Function fpSetDestPrinterAttr Lib "FPAPI4A.DLL" (ByVal hfp As Long, ByVal pszDestPrinter As String, ByVal pszSetting As String, ByVal dwValue As Long) As FpError
  49. Public Declare Function fpSetLayoutAttr Lib "FPAPI4A.DLL" (ByVal hfp As Long, ByVal li As eLayoutItem, pAttr As Any) As FpError
  50. Public Declare Function fpSetShowDlg Lib "FPAPI4A.DLL" (ByVal hfp As Long, ByVal dwShowDlg As Long) As FpError
  51. Public Declare Function fpSetStationeryAttr Lib "FPAPI4A.DLL" (ByVal hfp As Long, ByVal hStat As Long, ByVal si As eStatItem, ByVal sia As eStatItemAttr, pAttr As Any) As FpError
  52. Public Declare Function fpWaitForJob Lib "FPAPI4A.DLL" (ByVal hfp As Long, pjcOrig As FpJobCount, ByVal hProcess As Long, ByVal cSecTimeoutStart As Long, ByVal cSecTimeoutPrint As Long, pjs As FpJobStatus) As FpError
  53.