File: n_cst_amyuni_pdf64.sru
Size: 3897
Date: Fri, 01 Feb 2019 22:10:16 +0100
$PBExportHeader$n_cst_amyuni_pdf64.sru
$PBExportComments$Amyuni PDF Converter
forward
global type n_cst_amyuni_pdf64 from n_cst_amyuni_pdf
end type
end forward

global type n_cst_amyuni_pdf64 from n_cst_amyuni_pdf
end type
global n_cst_amyuni_pdf64 n_cst_amyuni_pdf64

type prototypes
// Windows Functions

Function boolean OpenPrinter ( &
   string pPrinterName, &
   Ref ulong phPrinter, &
   long pDefault &
   ) Library "winspool.drv" Alias For "OpenPrinterW"

Function boolean ClosePrinter ( &
   long hPrinter &
   ) Library "winspool.drv"

Function boolean CryptAcquireContext ( &
   Ref ulong phProv, &
   ulong pszContainer, &
   string pszProvider, &
   ulong dwProvType, &
   ulong dwFlags &
   ) Library "advapi32.dll" Alias For "CryptAcquireContextW"

Function boolean CryptReleaseContext ( &
   ulong hProv, &
   ulong dwFlags &
   ) Library "advapi32.dll"

Function boolean CryptGenRandom ( &
   ulong hProv, &
   ulong dwLen, &
   Ref ulong pbBuffer &
   ) Library "advapi32.dll"

// Amyuni Functions

Function long DriverInit ( &
   string szPrinter &
   ) Library "cdintf600_64.dll" Alias For "DriverInit;Ansi"

Subroutine DriverEnd ( &
   long hPrinter &
   ) Library "cdintf600_64.dll"

Function long EnablePrinter ( &
   long hPrinter, &
   string szCompany, &
   string szCode &
   ) Library "cdintf600_64.dll" Alias For "EnablePrinter;Ansi"

Subroutine GetLastErrorMsg ( &
   Ref string Msg, &
   long MaxMsg &
   ) Library "cdintf600_64.dll" Alias For "GetLastErrorMsg;Ansi"

Function long SetDocFileProps ( &
   long hPrinter, &
   string szDocTitle, &
   long nOptions, &
   string szFileDir, &
   string szFileName &
   ) Library "cdintf600_64.dll" Alias For "SetDocFilePropsW"

Function long SetFileNameOptions ( &
   long hPrinter, &
   long nOptions &
   ) Library "cdintf600_64.dll"

Function long SetResolution ( &
   long hPrinter, &
   long nResolution &
   ) Library "cdintf600_64.dll"

Function long SetLicenseKey ( &
   string szCompany, &
   string szLicKey &
   ) Library "cdintf600_64.dll" Alias For "SetLicenseKeyW"

Function long DocOpen ( &
   ref long pedhDocument, &
   string szFileName, &
   string szPassword &
   ) Library "cdintf600_64.dll" Alias For "DocOpenW"

Function long DocSplit ( &
   long edhDocument, &
   string prefix &
   ) Library "cdintf600_64.dll" Alias For "DocSplitW"

Function long DocClose ( &
   long edhDocument &
   ) Library "cdintf600_64.dll"

Function long DocSave ( &
   long edhDocument, &
   string szFileName &
   ) Library "cdintf600_64.dll" Alias For "DocSaveW"

Function long DocSetTitle ( &
   long edhDocument, &
   string szValue &
   ) Library "cdintf600_64.dll" Alias For "DocSetTitleW"

Function long DocSetSubject ( &
   long edhDocument, &
   string szValue &
   ) Library "cdintf600_64.dll" Alias For "DocSetSubjectW"

Function long DocSetAuthor ( &
   long edhDocument, &
   string szValue &
   ) Library "cdintf600_64.dll" Alias For "DocSetAuthorW"

Function long DocSetKeywords ( &
   long edhDocument, &
   string szValue &
   ) Library "cdintf600_64.dll" Alias For "DocSetKeywordsW"

Function long Lock ( &
   long hPrinter, &
   string szDocTitle &
   ) Library "cdintf600_64.dll" Alias For "LockW"

Function long Unlock ( &
   long hPrinter, &
   string szDocTitle, &
   long dwTimeout &
   ) Library "cdintf600_64.dll" Alias For "UnlockW"

Function long SetWatermark ( &
   long hPrinter, &
   string szWatermark, &
   string szFont, &
   integer fontSize, &
   integer Orientation, &
   ulong color, &
   long xPos, &
   long yPos, &
   boolean bForeground &
   ) Library "cdintf600_64.dll" Alias For "SetWatermark;Ansi"

Function long ConcatenateFiles ( &
   string szFile1, &
   string szFile2, &
   string szFile3 &
   ) Library "cdintf600_64.dll" Alias For "ConcatenateFilesW"

end prototypes
on n_cst_amyuni_pdf64.create
call super::create
end on

on n_cst_amyuni_pdf64.destroy
call super::destroy
end on